Completed
Push — v3.0 ( 01b7c9...365f9e )
by Samir
12:36
created
web_interface/astpp/application/config/cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 */
10 10
 
11 11
 $astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
12
-$config['SERVER_NAME'] 		= $astpp_config['base_url'];	// Your web site url
13
-$config['CRON_TIME_LIMIT']	= 0;								// 0 = no time limit
14
-$config['argv']			= array("LowBalance"=>"lowbalance/low_balance",
12
+$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url
13
+$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit
14
+$config['argv'] = array("LowBalance"=>"lowbalance/low_balance",
15 15
 					"Lowcredit"=>"lowcreditlimit/low_creditlimit",
16 16
 					"UpdateBalance" => "updateBalance/GetUpdateBalance",
17 17
 						"CurrencyUpdate" => "currencyupdate/update_currency",
18 18
 					"GenerateInvoice" => "generateInvoice/getInvoiceData",
19 19
 					"FeedBack"=>"feedback/customer_feedback_result/TRUE",
20 20
 					"BroadcastEmail" => "broadcastemail/broadcast_email");
21
-$config['CRON_BETA_MODE']	= false;							// Beta Mode (useful for blocking submissions for testing)
21
+$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing)
22 22
 
23 23
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/language/english/menu_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 //Main Menu
3 5
 $lang['Home'] = 'Home';
4 6
 $lang['Global Accounts'] = 'Global Accounts';
Please login to merge, or discard this patch.
web_interface/astpp/application/language/english/footer_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,5 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 $lang['FOOTER.FOOTER'] = 'Copyright &copy; 2003 - 2012. ASTPP - Open Source VOIP Billing Solution. All Rights Reserved.';
3 5
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/language/spanish/menu_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 //Main Menu
3 5
 $lang['Home'] = 'Casa';
4 6
 $lang['Global Accounts'] = 'cuentas globales';
Please login to merge, or discard this patch.
web_interface/astpp/application/language/spanish/footer_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,5 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 $lang['FOOTER.FOOTER'] = 'Copyright © 2003 - 2012. ASTPP - Open Source Solución de Facturación VOIP. Todos los Derechos Reservados.';
3 5
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/libraries/locale_menu.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if ( ! defined('BASEPATH'))
25 25
 	exit('No direct script access allowed');
26 26
 
27 27
 /**
28 28
  * Dynamically build forms for display
29 29
  */
30
-class locale_Menu{
30
+class locale_Menu {
31 31
 
32 32
 	function __construct($library_name = '') {
33 33
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		$this->CI->load->model('db_model');
36 36
 		$this->CI->load->library('email');
37 37
 		$this->CI->load->library('session');
38
-	$current_locale=$this->CI->session->userdata('user_language');
38
+	$current_locale = $this->CI->session->userdata('user_language');
39 39
 	putenv("LC_ALL=$current_locale");
40 40
 	setlocale(LC_ALL, $current_locale); 
41 41
 	bindtextdomain(WEBSITE_DOMAIN, FCPATH.'/application/modules/dashboard/language');
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if (!defined('BASEPATH')) {
25 25
 	exit('No direct script access allowed');
26
+}
26 27
 
27 28
 /**
28 29
  * Dynamically build forms for display
Please login to merge, or discard this patch.
web_interface/astpp/application/libraries/global_locale.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if ( ! defined('BASEPATH'))
25 25
 	exit('No direct script access allowed');
26 26
 
27 27
 /**
28 28
  * Dynamically build forms for display
29 29
  */
30
-class Global_locale{
30
+class Global_locale {
31 31
 
32 32
 	function __construct($library_name = '') {
33 33
 
34 34
 		$this->CI = & get_instance();
35 35
 	header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
36
-	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
36
+	header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
37 37
 	header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
38 38
 	header("Cache-Control: post-check=0, pre-check=0", false);
39 39
 	header("Pragma: no-cache");
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if (!defined('BASEPATH')) {
25 25
 	exit('No direct script access allowed');
26
+}
26 27
 
27 28
 /**
28 29
  * Dynamically build forms for display
Please login to merge, or discard this patch.
web_interface/astpp/application/views/footer.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	if($result->num_rows() > 0){
13 13
 		$result=$result->result_array();
14 14
 		$footer = $result[0]['website_footer'];
15
-	}else{
15
+	} else{
16 16
 		$footer = '';
17 17
 	}
18 18
   	if($footer != ''){ ?>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
    <div class="padding-b-10 col-md-12 no-padding">
7 7
 	
8 8
   <?php
9
-	$str = isset($_SERVER['HTTPS'])&& $_SERVER['HTTPS'] == 'on' ? 'https://' :'http://';
9
+	$str = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
10 10
 	$this->db->select('*');	
11
-	$this->db->where('domain',$_SERVER['HTTP_HOST']);
12
-	$this->db->or_where('domain','http://'.$_SERVER['HTTP_HOST']);
13
-	$this->db->or_where('domain','https://'.$_SERVER['HTTP_HOST']);
14
-	$result=$this->db->get('invoice_conf');
15
-	if($result->num_rows() > 0){
16
-		$result=$result->result_array();
11
+	$this->db->where('domain', $_SERVER['HTTP_HOST']);
12
+	$this->db->or_where('domain', 'http://'.$_SERVER['HTTP_HOST']);
13
+	$this->db->or_where('domain', 'https://'.$_SERVER['HTTP_HOST']);
14
+	$result = $this->db->get('invoice_conf');
15
+	if ($result->num_rows() > 0) {
16
+		$result = $result->result_array();
17 17
 		$footer = $result[0]['website_footer'];
18
-	}else{
18
+	} else {
19 19
 		$footer = '';
20 20
 	}
21
-  	if($footer != ''){ ?>
21
+  	if ($footer != '') { ?>
22 22
 		 <div style="margin-left:470px; "><?=$footer ?>
23 23
 		 
24 24
 		 <div style="" class="pull-left">
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/mssql/mssql_driver.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -295,15 +295,15 @@
 block discarded – undo
295 295
 	// --------------------------------------------------------------------
296 296
 
297 297
 	/**
298
-	* Parse major version
299
-	*
300
-	* Grabs the major version number from the
301
-	* database server version string passed in.
302
-	*
303
-	* @access private
304
-	* @param string $version
305
-	* @return string major version number
306
-	*/
298
+	 * Parse major version
299
+	 *
300
+	 * Grabs the major version number from the
301
+	 * database server version string passed in.
302
+	 *
303
+	 * @access private
304
+	 * @param string $version
305
+	 * @return string major version number
306
+	 */
307 307
 	function _parse_major_version($version)
308 308
 	{
309 309
 		preg_match('/([0-9]+)\.([0-9]+)\.([0-9]+)/', $version, $ver_info);
Please login to merge, or discard this patch.