#!/usr/bin/env php util/pconfig util/pconfig util/pconfig util/pconfig Displays all of the the channel's config entries util/pconfig Displays all of the channel's config entries for the specified family (system, database, etc) util/pconfig Displays single config entry for the specified family and key util/pconfig Set config entry for specified family and key to value and display result Notes: For site-wide configuration settings, use util/config Details for configuration options can be found at: EndOfOutput; echo ' ' . App::get_baseurl() . '/help/hidden_configs' . PHP_EOL . PHP_EOL; return; } if($argc > 4) { set_pconfig($argv[1],$argv[2],$argv[3],$argv[4]); build_sync_packet($argv[1]); echo "pconfig[{$argv[1]}][{$argv[2]}][{$argv[3]}] = " . get_pconfig($argv[1],$argv[2],$argv[3]) . "\n"; } if($argc == 4) { echo "pconfig[{$argv[1]}][{$argv[2]}][{$argv[3]}] = " . get_pconfig($argv[1],$argv[2],$argv[3]) . "\n"; } if($argc == 3) { load_pconfig($argv[1],$argv[2]); foreach(App::$config[$argv[1]][$argv[2]] as $k => $x) { echo "pconfig[{$argv[1]}][{$argv[2]}][{$k}] = " . $x . "\n"; } } if($argc == 2) { $r = q("select * from pconfig where uid = " . intval($argv[1])); if($r) { foreach($r as $rr) { echo "pconfig[{$rr['uid']}][{$rr['cat']}][{$rr['k']}] = " . $rr['v'] . "\n"; } } }