diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-04-03 21:36:29 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-04-03 21:36:29 -0400 |
commit | 0523b4b2f1012a8b5f3bffb7f136a20dc9a4e43f (patch) | |
tree | a92197de4503ec52889dc05483493f4df1a305b8 /util/fresh | |
parent | 99d9456b3addc651a68874ddd391d25684252c4d (diff) | |
parent | b4c1baada1fba46d4d75f40a7e78111d70d54e7a (diff) | |
download | volse-hubzilla-0523b4b2f1012a8b5f3bffb7f136a20dc9a4e43f.tar.gz volse-hubzilla-0523b4b2f1012a8b5f3bffb7f136a20dc9a4e43f.tar.bz2 volse-hubzilla-0523b4b2f1012a8b5f3bffb7f136a20dc9a4e43f.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla into contextual-help
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 |