aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-27 09:45:39 +0000
committerMario <mario@mariovavti.com>2021-05-27 09:45:39 +0000
commit7776283a479e24955f45eb9993d93d4dde87956a (patch)
tree6e7638301d13f74038a5c769f5a06867f37832c3 /util
parentc9d4802bf14cd135a75f89e4aa06976dfd628af5 (diff)
downloadvolse-hubzilla-7776283a479e24955f45eb9993d93d4dde87956a.tar.gz
volse-hubzilla-7776283a479e24955f45eb9993d93d4dde87956a.tar.bz2
volse-hubzilla-7776283a479e24955f45eb9993d93d4dde87956a.zip
remove zot includes
Diffstat (limited to 'util')
-rwxr-xr-xutil/fresh23
-rwxr-xr-xutil/pconfig3
2 files changed, 12 insertions, 14 deletions
diff --git a/util/fresh b/util/fresh
index 0482d1215..173bdf2af 100755
--- a/util/fresh
+++ b/util/fresh
@@ -4,7 +4,6 @@
// Red cli interpreter
require_once('include/cli_startup.php');
-require_once('include/zot.php');
cli_startup();
@@ -23,7 +22,7 @@ function fresh_main($argc,$argv) {
$line = fgets(STDIN);
}
-
+
if($line === FALSE) {
if(feof(STDIN)) {
break;
@@ -34,7 +33,7 @@ function fresh_main($argc,$argv) {
$line = trim($line);
if($line == 'quit' || $line == 'exit')
exit();
-
+
process_command($line);
}
@@ -62,7 +61,7 @@ function process_command($line) {
case '?':
case 'help':
fresh_help();
- break;
+ break;
case 'finger':
if(argv(1)) {
@@ -92,13 +91,13 @@ function process_command($line) {
echo 'logged in';
$channel = App::get_channel();
if($channel)
- echo ' as ' . $channel['channel_name'];
+ echo ' as ' . $channel['channel_name'];
}
else
echo 'login failed.';
}
- break;
+ break;
case 'channel':
if(! local_channel())
echo 'Permission denied.';
@@ -115,19 +114,19 @@ function process_command($line) {
else
echo 'Channel not found.';
}
- break;
+ break;
case 'conn':
if(! local_channel()) {
echo "Permission denied.";
break;
}
if(argc() > 1) {
- for($x = 1; $x < argc(); $x ++) {
+ for($x = 1; $x < argc(); $x ++) {
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d",
intval(argv($x)),
intval(local_channel())
);
- if($r) echo jindent(json_encode($r[0])) . "\n";
+ if($r) echo jindent(json_encode($r[0])) . "\n";
}
}
else {
@@ -144,12 +143,12 @@ function process_command($line) {
default:
break;
- }
+ }
}
-
+
function fresh_help() {
if(argc() == 1) {
@@ -161,4 +160,4 @@ function fresh_help() {
echo "quit|exit - terminate fresh\n";
}
-} \ No newline at end of file
+}
diff --git a/util/pconfig b/util/pconfig
index c2027adaf..13fd1e99b 100755
--- a/util/pconfig
+++ b/util/pconfig
@@ -14,7 +14,6 @@ if(!file_exists('include/cli_startup.php')) {
require_once('include/cli_startup.php');
-require_once('include/zot.php');
cli_startup();
@@ -36,7 +35,7 @@ Usage: util/pconfig
Displays all of the the channel's config entries
util/pconfig <channel_id> <family>
- Displays all of the channel's config entries for the specified family
+ Displays all of the channel's config entries for the specified family
(system, database, etc)
util/pconfig <channel_id> <family> <key>