Skip to content

Commit

Permalink
Implemented reinstall feature
Browse files Browse the repository at this point in the history
  • Loading branch information
seantomburke committed Feb 7, 2014
1 parent dcd69cc commit 9a07c8f
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 4 deletions.
36 changes: 32 additions & 4 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

}

if($_GET['action'] == "DELETE EVENTS")
if($_GET['action'] == "DELETE EVENTS" || $_GET['action'] == "REINSTALL")
{
$errors = 1;

Expand Down Expand Up @@ -277,7 +277,7 @@
}
}*/

if($_GET['action'] == "DELETE USERS")
if($_GET['action'] == "DELETE USERS" || $_GET['action'] == "REINSTALL")
{
$errors = 1;

Expand Down Expand Up @@ -311,7 +311,7 @@
}
}

if($_GET['action'] == "DELETE SCANS")
if($_GET['action'] == "DELETE SCANS" || $_GET['action'] == "REINSTALL")
{
$errors = 1;

Expand Down Expand Up @@ -340,7 +340,8 @@
}
}

if($_GET['action'] == "DELETE BARCODES")

if($_GET['action'] == "DELETE BARCODES" || $_GET['action'] == "REINSTALL")
{
$errors = 1;

Expand Down Expand Up @@ -370,6 +371,33 @@
}
}

if($_GET['action'] == "REINSTALL")
{
$errors = 1;

if($_GET['delete_continue'] != "DELETE")
{
$errors++;
$error_message[0] = '
<form action="'.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'" method="GET">
Are you sure you want to reinstall ESCan? This will delete EVERYTHING!
<input type="submit" value="DELETE" name="delete_continue">
<input type="hidden" value="REINSTALL" name="action">
</form>';
}

if($errors == 1)
{
$page->setMessage('ESCan has been reinstalled', 'failure');
}
else
{
$page->setMessage($error_message, 'error');
}

}




if($user['ucinetid'])
Expand Down
60 changes: 60 additions & 0 deletions error_log
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,63 @@
[01-Feb-2014 06:20:48] PHP Parse error: syntax error, unexpected T_VARIABLE in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/statistics.php on line 114
[01-Feb-2014 20:20:31] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[01-Feb-2014 20:24:57] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[02-Feb-2014 16:53:22] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[07-Feb-2014 01:40:59] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[06-Feb-2014 22:41:02] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:02] PHP Stack trace:
[06-Feb-2014 22:41:02] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:02] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:02] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:41:04] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:04] PHP Stack trace:
[06-Feb-2014 22:41:04] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:04] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:04] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:41:27] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:27] PHP Stack trace:
[06-Feb-2014 22:41:27] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:27] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:27] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:41:27] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:27] PHP Stack trace:
[06-Feb-2014 22:41:27] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:27] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:27] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:41:28] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:28] PHP Stack trace:
[06-Feb-2014 22:41:28] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:28] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:28] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:41:44] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:41:44] PHP Stack trace:
[06-Feb-2014 22:41:44] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:41:44] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:41:44] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[07-Feb-2014 01:43:13] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[06-Feb-2014 22:43:13] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:43:13] PHP Stack trace:
[06-Feb-2014 22:43:13] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:43:13] PHP 2. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:27
[06-Feb-2014 22:43:13] PHP 3. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:43:13] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php on line 41
[06-Feb-2014 22:43:13] PHP Stack trace:
[06-Feb-2014 22:43:13] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/admin.php:0
[06-Feb-2014 22:43:13] PHP 2. Page->__construct() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/admin.php:4
[06-Feb-2014 22:43:13] PHP 3. DB->DB() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/Page.class.php:67
[06-Feb-2014 22:43:13] PHP 4. mysql_connect() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/inc/classes/DB.class.php:41
[06-Feb-2014 22:43:37] PHP Warning: Invalid argument supplied for foreach() in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php on line 37
[06-Feb-2014 22:43:37] PHP Stack trace:
[06-Feb-2014 22:43:37] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:43:42] PHP Warning: Invalid argument supplied for foreach() in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php on line 37
[06-Feb-2014 22:43:42] PHP Stack trace:
[06-Feb-2014 22:43:42] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[06-Feb-2014 22:44:42] PHP Warning: Invalid argument supplied for foreach() in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php on line 37
[06-Feb-2014 22:44:42] PHP Stack trace:
[06-Feb-2014 22:44:42] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/install.php:0
[07-Feb-2014 01:50:23] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: php_libxml_disable_entity_loader in Unknown on line 0
[06-Feb-2014 22:54:12] PHP Warning: Invalid argument supplied for foreach() in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/statistics.php on line 38
[06-Feb-2014 22:54:12] PHP Stack trace:
[06-Feb-2014 22:54:12] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/statistics.php:0
[06-Feb-2014 22:55:42] PHP Fatal error: Call to undefined function isarray() in /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/statistics.php on line 37
[06-Feb-2014 22:55:42] PHP Stack trace:
[06-Feb-2014 22:55:42] PHP 1. {main}() /var/lib/stickshift/52e920f45973cab77b0003aa/app-root/data/730921/statistics.php:0

0 comments on commit 9a07c8f

Please sign in to comment.