@@ -983,6 +983,9 @@ discard block |
||
983 | 983 | } |
984 | 984 | |
985 | 985 | |
986 | + /** |
|
987 | + * @param string $version |
|
988 | + */ |
|
986 | 989 | public static function upgrade_version ($version) |
987 | 990 | { |
988 | 991 | $const_dbpath = costant::database_path(); |
@@ -1000,6 +1003,10 @@ discard block |
||
1000 | 1003 | ########################## |
1001 | 1004 | class various |
1002 | 1005 | { |
1006 | + /** |
|
1007 | + * @param string $AlertMessage |
|
1008 | + * @param string $AlertRedirect |
|
1009 | + */ |
|
1003 | 1010 | public static function send_alert_and_redirect ($AlertMessage, $AlertRedirect) |
1004 | 1011 | { |
1005 | 1012 | echo "<script src='res/app/functions-1.0.4.js' type='text/javascript'></script>"; |
@@ -1192,6 +1199,10 @@ discard block |
||
1192 | 1199 | global $tr_default_type; |
1193 | 1200 | return $tr_default_type; |
1194 | 1201 | } |
1202 | + |
|
1203 | + /** |
|
1204 | + * @return string |
|
1205 | + */ |
|
1195 | 1206 | public static function attachments_folder () |
1196 | 1207 | { |
1197 | 1208 | global $attachments_folder; |
@@ -579,8 +579,8 @@ discard block |
||
579 | 579 | } |
580 | 580 | |
581 | 581 | |
582 | - //Select all bank accounts |
|
583 | - public static function bankaccount_select_all () |
|
582 | + //Select all bank accounts |
|
583 | + public static function bankaccount_select_all () |
|
584 | 584 | { |
585 | 585 | $const_dbpath = costant::database_path(); |
586 | 586 | $db = new PDO("sqlite:${const_dbpath}"); |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | |
596 | 596 | |
597 | 597 | //Select all payee |
598 | - public static function payee_select_all_name () |
|
598 | + public static function payee_select_all_name () |
|
599 | 599 | { |
600 | 600 | $const_dbpath = costant::database_path(); |
601 | 601 | $db = new PDO("sqlite:${const_dbpath}"); |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | |
612 | 612 | |
613 | 613 | //Select one payee |
614 | - public static function payee_select_one ($PayeeName) |
|
614 | + public static function payee_select_one ($PayeeName) |
|
615 | 615 | { |
616 | 616 | $const_dbpath = costant::database_path(); |
617 | 617 | $db = new PDO("sqlite:${const_dbpath}"); |
@@ -763,7 +763,7 @@ discard block |
||
763 | 763 | } |
764 | 764 | |
765 | 765 | |
766 | - // Insert all categories |
|
766 | + // Insert all categories |
|
767 | 767 | public static function category_insert_json ($CategoryJSON) |
768 | 768 | { |
769 | 769 | $categories_json_list = json_decode ($CategoryJSON,true); |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | case "1.0.1": |
900 | 900 | db_upgrade::upgrade_version("1.0.2"); |
901 | 901 | break; |
902 | - case "1.0.2": |
|
902 | + case "1.0.2": |
|
903 | 903 | db_upgrade::upgrade_version("1.0.3"); |
904 | 904 | break; |
905 | 905 | case "1.0.3": |
@@ -1250,15 +1250,15 @@ discard block |
||
1250 | 1250 | |
1251 | 1251 | public static function current_page_url () |
1252 | 1252 | { |
1253 | - $pageURL = 'http'; |
|
1254 | - if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") |
|
1253 | + $pageURL = 'http'; |
|
1254 | + if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") |
|
1255 | 1255 | $pageURL .= "s"; |
1256 | - $pageURL .= "://"; |
|
1257 | - if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") |
|
1256 | + $pageURL .= "://"; |
|
1257 | + if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") |
|
1258 | 1258 | {$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];} |
1259 | - else |
|
1259 | + else |
|
1260 | 1260 | {$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];} |
1261 | - return $pageURL; |
|
1261 | + return $pageURL; |
|
1262 | 1262 | } |
1263 | 1263 | } |
1264 | 1264 | ?> |
@@ -29,7 +29,7 @@ |
||
29 | 29 | <br /> |
30 | 30 | <h3><strong>Internal Error</strong></h3> |
31 | 31 | <?php |
32 | - echo "<h4> Version ".costant::app_version()."</h4>"; |
|
32 | + echo "<h4> Version ".costant::app_version()."</h4>"; |
|
33 | 33 | ?> |
34 | 34 | <br /> |
35 | 35 | <h4> Please contact developer Gabriele [Gabriele-V]</h4> |
@@ -31,8 +31,8 @@ |
||
31 | 31 | <br /> |
32 | 32 | <h2><strong>Money Manager Ex - Web App</strong></h2> |
33 | 33 | <?php |
34 | - echo "<h4> Version ".costant::app_version()."</h4>"; |
|
35 | - echo "<h5> API Version ".costant::api_version()."</h5>"; |
|
34 | + echo "<h4> Version ".costant::app_version()."</h4>"; |
|
35 | + echo "<h5> API Version ".costant::api_version()."</h5>"; |
|
36 | 36 | ?> |
37 | 37 | <br /> |
38 | 38 | <h4> Developer: Gabriele [Gabriele-V]</h4> |
@@ -148,7 +148,7 @@ |
||
148 | 148 | echo "<h3 class='text_align_center'>No transaction inserted</h3>"; |
149 | 149 | echo "<br />"; |
150 | 150 | echo "<br />"; |
151 | - echo "<a href='new_transaction.php' class='btn btn-lg btn-success btn-block'>Insert new</a>"; |
|
151 | + echo "<a href='new_transaction.php' class='btn btn-lg btn-success btn-block'>Insert new</a>"; |
|
152 | 152 | echo "<br />"; |
153 | 153 | echo "<a href='landing.php' class='btn btn-lg btn-success btn-block'>Return to menu</a>"; |
154 | 154 | echo "<br />"; |