diff options
author | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:22:27 +0200 |
---|---|---|
committer | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:22:27 +0200 |
commit | c38c79d71c8ef70ef649f83e322f1984b75ee2dd (patch) | |
tree | 958fcd22f04546f40b6ac68bb58cfe1a1b1fb7f6 /util/fresh | |
parent | 1806da0851dd5cf5978b19d12783ae3101a11257 (diff) | |
parent | 45a854762b451dafb882bc56efce054b64420627 (diff) | |
download | volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.tar.gz volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.tar.bz2 volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.zip |
Merge branch 'redmatrix-master'
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 |