File tree Expand file tree Collapse file tree 17 files changed +49
-50
lines changed
Expand file tree Collapse file tree 17 files changed +49
-50
lines changed Original file line number Diff line number Diff line change 66 if (isset ($ _GET ['update_settings ' ])) {
77 $ enable_ads = mysqli_real_escape_string ($ conn , $ _GET ['ads:enabled ' ]);
88 $ ads_code = mysqli_real_escape_string ($ conn , $ _GET ['ads:code ' ]);
9- $ enable_adblocker_detection = mysqli_real_escape_string ($ conn , $ _GET ['ads:adblocker ' ]);
109 mysqli_query ($ conn , "UPDATE `mythicaldash_settings` SET `enable_ads` = ' " . $ enable_ads . "' WHERE `mythicaldash_settings`.`id` = 1; " );
11- mysqli_query ($ conn , "UPDATE `mythicaldash_settings` SET `enable_ads` = ' " . $ enable_ads . "' WHERE `mythicaldash_settings`.`id` = 1; " );
12- mysqli_query ($ conn , "UPDATE `mythicaldash_settings` SET `enable_adblocker_detection` = ' " . $ enable_adblocker_detection . "' WHERE `mythicaldash_settings`.`id` = 1; " );
10+ mysqli_query ($ conn , "UPDATE `mythicaldash_settings` SET `ads_code` = ' " . $ ads_code . "' WHERE `mythicaldash_settings`.`id` = 1; " );
1311 header ('location: /admin/settings?s=We updated the settings inside the database ' );
1412 $ conn ->close ();
1513 die ();
1614 } else {
17- header ('location: /admin/settings ' );
15+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
1816 die ();
1917 }
2018} catch (Exception $ ex ) {
21- ErrorHandler::Critical ("Failed to update settings " ,$ e );
19+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2220 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2321 die ();
2422}
Original file line number Diff line number Diff line change 1212 $ conn ->close ();
1313 die ();
1414 } else {
15- header ('location: /admin/settings ' );
15+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
1616 die ();
1717 }
1818} catch (Exception $ ex ) {
19- ErrorHandler::Critical ("Failed to update settings " ,$ e );
19+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2020 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2121 die ();
2222}
Original file line number Diff line number Diff line change 1313 $ conn ->close ();
1414 die ();
1515 } else {
16- header ('location: /admin/settings ' );
16+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
1717 die ();
1818 }
1919} catch (Exception $ ex ) {
20- ErrorHandler::Critical ("Failed to update settings " ,$ e );
20+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2121 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2222 die ();
2323}
Original file line number Diff line number Diff line change 2020 $ conn ->close ();
2121 die ();
2222 } else {
23- header ('location: /admin/settings ' );
24- die ();
23+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
24+ die ();
2525 }
2626} catch (Exception $ ex ) {
27- ErrorHandler::Critical ("Failed to update settings " ,$ e );
27+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2828 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2929 die ();
3030}
Original file line number Diff line number Diff line change 1212 $ conn ->close ();
1313 die ();
1414 } else {
15- header ('location: /admin/settings ' );
15+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
1616 die ();
1717 }
1818} catch (Exception $ ex ) {
19- ErrorHandler::Critical ("Failed to update settings " ,$ e );
19+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2020 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2121 die ();
2222}
Original file line number Diff line number Diff line change 1515 $ conn ->close ();
1616 die ();
1717 } else {
18- header ('location: /admin/settings ' );
19- die ();
18+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
19+ die ();
2020 }
2121} catch (Exception $ ex ) {
22- ErrorHandler::Critical ("Failed to update settings " ,$ e );
22+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2323 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2424 die ();
2525}
Original file line number Diff line number Diff line change 2222 $ conn ->close ();
2323 die ();
2424 } else {
25- header ('location: /admin/settings ' );
26- die ();
25+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
26+ die ();
2727 }
2828} catch (Exception $ ex ) {
29- ErrorHandler::Critical ("Failed to update settings " ,$ e );
29+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
3030 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
3131 die ();
3232}
Original file line number Diff line number Diff line change 1010 $ conn ->close ();
1111 die ();
1212 } else {
13- header ('location: /admin/settings ' );
14- die ();
13+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
14+ die ();
1515 }
1616} catch (Exception $ ex ) {
17- ErrorHandler::Critical ("Failed to update settings " ,$ e );
17+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
1818 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
1919 die ();
2020}
Original file line number Diff line number Diff line change 1212 $ conn ->close ();
1313 die ();
1414 } else {
15- header ('location: /admin/settings ' );
16- die ();
15+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
16+ die ();
1717 }
1818} catch (Exception $ ex ) {
19- ErrorHandler::Critical ("Failed to update settings " ,$ e );
19+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2020 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2121 die ();
2222}
Original file line number Diff line number Diff line change 1616 header ('location: /admin/settings?s=We updated the settings inside the database ' );
1717 die ();
1818 } else {
19- header ('location: /admin/settings ' );
19+ header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2020 die ();
2121 }
2222} catch (Exception $ ex ) {
23- ErrorHandler::Critical ("Failed to update settings " ,$ e );
23+ ErrorHandler::Critical ("Failed to update settings " ,$ ex );
2424 header ('location: /admin/settings?e=Failed to update the settings inside the database ' );
2525 die ();
2626}
You can’t perform that action at this time.
0 commit comments