diff options
author | redmatrix <git@macgirvin.com> | 2016-03-31 16:06:03 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-03-31 16:06:03 -0700 |
commit | 9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch) | |
tree | 3cf2eec6a29f384b80a8c607aa97172b84e37e62 /util/fresh | |
parent | 256c228efd249f2ce93405db8e36f52030aa4876 (diff) | |
download | volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2 volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip |
static App
Diffstat (limited to 'util/fresh')
-rwxr-xr-x | util/fresh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/fresh b/util/fresh index 8bee5dff7..c70f1cac9 100755 --- a/util/fresh +++ b/util/fresh @@ -48,9 +48,9 @@ function process_command($line) { // split args - $a->cmd = $line; - $a->argv = explode(' ',$line); - $a->argc = count($a->argv); + App::$cmd = $line; + App::$argv = explode(' ',$line); + App::$argc = count(App::$argv); $authenticated = false; $channel = null; @@ -82,14 +82,14 @@ function process_command($line) { exec('/bin/stty echo'); echo "\n"; require_once('include/auth.php'); - $record = get_app()->account = account_verify_password(argv(1),trim($x,"\n")); + $record = App::$account = account_verify_password(argv(1),trim($x,"\n")); if($record) { - $_SESSION['account_id'] = get_app()->account['account_id']; + $_SESSION['account_id'] = App::$account['account_id']; $_SESSION['last_login_date'] = datetime_convert(); authenticate_success($record, true, true); echo 'logged in'; - $channel = $a->get_channel(); + $channel = App::get_channel(); if($channel) echo ' as ' . $channel['channel_name']; } @@ -108,7 +108,7 @@ function process_command($line) { ); if($r) { change_channel($r[0]['channel_id']); - $channel = $a->get_channel(); + $channel = App::get_channel(); echo 'Logged in as ' . $channel['channel_name']; } else |