Completed
Push — v3.0 ( 23635d...e28df5 )
by Samir
23s
created
web_interface/astpp/application/config/user_agents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 |
11 11
 */
12 12
 
13
-$platforms = array (
13
+$platforms = array(
14 14
 					'windows nt 6.0'	=> 'Windows Longhorn',
15 15
 					'windows nt 5.2'	=> 'Windows 2003',
16 16
 					'windows nt 5.0'	=> 'Windows 2000',
Please login to merge, or discard this patch.
web_interface/astpp/application/config/cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 */
8 8
 
9 9
 $astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
10
-$config['SERVER_NAME'] 		= $astpp_config['base_url'];	// Your web site url
11
-$config['CRON_TIME_LIMIT']	= 0;								// 0 = no time limit
12
-$config['argv']			= array("LowBalance"=>"lowbalance/low_balance",
10
+$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url
11
+$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit
12
+$config['argv'] = array("LowBalance"=>"lowbalance/low_balance",
13 13
 					"Lowcredit"=>"lowcreditlimit/low_creditlimit",
14 14
 					"UpdateBalance" => "updateBalance/GetUpdateBalance",
15 15
 				        "CurrencyUpdate" => "currencyupdate/update_currency",
16 16
 					"GenerateInvoice" => "generateInvoice/getInvoiceData",
17 17
 					"FeedBack"=>"feedback/customer_feedback_result/TRUE",
18 18
 					"BroadcastEmail" => "broadcastemail/broadcast_email");
19
-$config['CRON_BETA_MODE']	= false;							// Beta Mode (useful for blocking submissions for testing)
19
+$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing)
20 20
 
21 21
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/config/migration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 | Also, writing permission is required within the migrations path.
35 35
 |
36 36
 */
37
-$config['migration_path'] = APPPATH . 'migrations/';
37
+$config['migration_path'] = APPPATH.'migrations/';
38 38
 
39 39
 
40 40
 /* End of file migration.php */
Please login to merge, or discard this patch.
web_interface/astpp/application/config/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 */
54 54
 
55 55
 //$autoload['libraries'] = array('database','session');
56
-$autoload['libraries'] = array('database','session','locale','global_locale');
56
+$autoload['libraries'] = array('database', 'session', 'locale', 'global_locale');
57 57
 
58 58
 
59 59
 /*
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 |	$autoload['helper'] = array('url', 'file');
66 66
 */
67 67
 
68
-$autoload['helper'] = array('url','template_inheritance','form');
68
+$autoload['helper'] = array('url', 'template_inheritance', 'form');
69 69
 
70 70
 
71 71
 /*
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 |
111 111
 */
112 112
 
113
-$autoload['model'] = array('common_model','db_model');
113
+$autoload['model'] = array('common_model', 'db_model');
114 114
 
115 115
 
116 116
 /* End of file autoload.php */
Please login to merge, or discard this patch.
web_interface/astpp/application/config/config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('BASEPATH'))
3
+if ( ! defined('BASEPATH'))
4 4
     exit('No direct script access allowed');
5 5
 
6 6
 /*
@@ -404,9 +404,9 @@  discard block
 block discarded – undo
404 404
     'Destination' => 'extensions',
405 405
     "Status" => 'status',
406 406
 );
407
-$config['invoices_path'] = FCPATH . "invoices/";
408
-$config['invoice_screen'] = FCPATH . APPPATH . "controllers/";
409
-$config['rates-file-path'] = ASSETSDIR . "Rates_File/uploaded_files/";
407
+$config['invoices_path'] = FCPATH."invoices/";
408
+$config['invoice_screen'] = FCPATH.APPPATH."controllers/";
409
+$config['rates-file-path'] = ASSETSDIR."Rates_File/uploaded_files/";
410 410
 $config['db_upload-file-path'] = "/tmp/";
411 411
 $config['Origin-rates-field'] = array('code' => 'pattern',
412 412
     'prepend' => 'prepend',
@@ -421,9 +421,9 @@  discard block
 block discarded – undo
421 421
 $config['package-code-field'] = array('code' => 'patterns',
422 422
     'destination' => 'destination',
423 423
 );
424
-$config['invoices_path'] = FCPATH . "invoices/";
424
+$config['invoices_path'] = FCPATH."invoices/";
425 425
 $config['invoice_template'] = APPPATH."views/";
426
-$config['invoice_screen'] = APPPATH . "controllers/";
426
+$config['invoice_screen'] = APPPATH."controllers/";
427 427
 $config['gzip-path'] = "/bin/gzip";
428 428
 $config['gunzip-path'] = "/bin/gunzip";
429 429
 /* End of file config.php */
Please login to merge, or discard this patch.
web_interface/astpp/application/views/custom_header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
 	ASTPP - Open Source Voip Billing Solution</title>
8 8
   <link rel="icon" href="<? echo base_url(); ?>assets/images/favicon.ico">
9 9
     <script language="javascript" type="text/javascript">
10
-	    var base_url = '<?php echo base_url();?>';
10
+	    var base_url = '<?php echo base_url(); ?>';
11 11
     </script>
12 12
      
13
-     <script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.min.js"></script>
13
+     <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
14 14
      
15 15
      
16 16
      <script src="<?php echo  base_url(); ?>assets/js/bootstrap-select.js"></script>
17 17
      <script src="<?php echo base_url(); ?>/assets/js/jquery.datetimepicker.js"></script>
18 18
      <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/tabcontent.js"></script>
19 19
      <!-- IE -->
20
-     <script type="text/javascript" src="<?php echo base_url();?>assets/js/respond.js"></script>
21
-     <script type="text/javascript" src="<?php echo base_url();?>assets/js/respond.src.js"></script>
20
+     <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/respond.js"></script>
21
+     <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/respond.src.js"></script>
22 22
     <!-- -->    
23 23
      
24
-     <script type="text/javascript" src="<?php echo base_url();?>assets/js/facebox.js"></script>
25
-     <script type="text/javascript" src="<?php echo base_url();?>assets/js/flexigrid.js"></script>
24
+     <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/facebox.js"></script>
25
+     <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/flexigrid.js"></script>
26 26
      <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/module_js/generate_grid.js"></script>
27 27
     <noscript>
28 28
       <div id="noscript-warning">
Please login to merge, or discard this patch.
web_interface/astpp/application/views/master.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 <!--******************************************-->   
11 11
 
12 12
 <?php
13
-$url =  "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
13
+$url = "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
14 14
 
15 15
 if (strpos($url, 'customer_cdrs') != true) {
16 16
    
@@ -27,19 +27,19 @@  discard block
 block discarded – undo
27 27
 ASTPP  3.0
28 28
 Email host test
29 29
 -->
30
-	        <?php if(isset($test_email_flag) && $test_email_flag){ ?>
30
+	        <?php if (isset($test_email_flag) && $test_email_flag) { ?>
31 31
 	                <div id="show_search" class="pull-right btn btn-warning btn margin-t-51"><a onclick="PopupCenter('<?=base_url()?>newmail/',resizable=1,width=580,height=700) "><font color="#fff"><i class= " fa fa-envelope-o"></i> &nbsp;Test Mail</font></a></div>
32 32
                 <?php } ?>
33 33
 
34 34
 <!--/*******************************/ -->
35 35
 	        <div class="col-sm-4 no-padding">
36
-		 <?php if(isset($batch_update_flag) && $batch_update_flag){ ?>
36
+		 <?php if (isset($batch_update_flag) && $batch_update_flag) { ?>
37 37
                 <div id="updatebar" class="pull-right btn btn-update btn margin-t-51 margin-l-10"><i class="fa fa-retweet fa-lg"></i> <?php echo gettext('Batch Update'); ?></div>
38 38
                 <?php } ?>
39
-	        <?php if(isset($search_flag) && $search_flag){ ?>
39
+	        <?php if (isset($search_flag) && $search_flag) { ?>
40 40
 	                <div id="show_search" class="pull-right btn btn-warning btn margin-t-51"><i class="fa fa-search"></i><?php echo gettext('Search'); ?></div>
41 41
                 <?php } ?>
42
-                <?php if(isset($back_flag) && $back_flag){?>
42
+                <?php if (isset($back_flag) && $back_flag) {?>
43 43
 					<ul class="breadcrumb">
44 44
                 <li class="active pull-right">
45 45
 				<a href="<?= $_SERVER['HTTP_REFERER']?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a>
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $astpp_msg = ucfirst($astpp_notify_msg);
93 93
         $msg_type = "notification";
94 94
    }
95
-   if($astpp_msg){
95
+   if ($astpp_msg) {
96 96
 ?>
97 97
 <script> 
98 98
     var validate_ERR = '<?= $astpp_msg; ?>';
Please login to merge, or discard this patch.
web_interface/astpp/application/views/left_panel_setting_master.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $astpp_msg = $astpp_notify_msg;
56 56
         $msg_type = "notification";
57 57
    }
58
-   if($astpp_msg){
58
+   if ($astpp_msg) {
59 59
 ?>
60 60
 <script> 
61 61
     var validate_ERR = '<?= $astpp_msg; ?>';
@@ -65,16 +65,16 @@  discard block
 block discarded – undo
65 65
 <?php } ?>
66 66
 
67 67
 <?php
68
-$class="active";
68
+$class = "active";
69 69
 ?>
70 70
 <div class="sidebar">
71 71
 	<ul class='sidemenu'>
72
-	<li class="<?php if($group_title == 'global'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/global'>Global</a></li>
73
-	<li class="<?php if($group_title == 'email'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/email'>Email</a></li>
74
-	<li class="<?php if($group_title == 'callingcard'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/callingcard'>Callingcard</a></li>
75
-	<li class="<?php if($group_title == 'opensips'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/opensips'>Opensips</a></li>
76
-	<li class="<?php if($group_title == 'paypal'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/paypal'>Paypal</a></li>
77
-	<li class="<?php if($group_title == 'signup'){ echo $class; } ?>"><a href ='<?php echo base_url();  ?>systems/configuration/signup'>Signup</a></li>
72
+	<li class="<?php if ($group_title == 'global') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/global'>Global</a></li>
73
+	<li class="<?php if ($group_title == 'email') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/email'>Email</a></li>
74
+	<li class="<?php if ($group_title == 'callingcard') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/callingcard'>Callingcard</a></li>
75
+	<li class="<?php if ($group_title == 'opensips') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/opensips'>Opensips</a></li>
76
+	<li class="<?php if ($group_title == 'paypal') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/paypal'>Paypal</a></li>
77
+	<li class="<?php if ($group_title == 'signup') { echo $class; } ?>"><a href ='<?php echo base_url(); ?>systems/configuration/signup'>Signup</a></li>
78 78
                </ul>
79 79
                
80 80
 </div>		
Please login to merge, or discard this patch.
web_interface/astpp/application/views/view_newmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 
2 2
  <link href="<?= base_url() ?>assets/css/popup.css" rel="stylesheet" type="text/css">
3
- <script type="text/javascript" src="<?php echo base_url();?>assets/js/popup/custom.js"></script>
3
+ <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/popup/custom.js"></script>
4 4
 <script type="text/javascript">
5 5
 
6 6
     
Please login to merge, or discard this patch.