X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=boot.php;h=7d8c7040de9a1cc67df908588177dc54870b55cb;hb=f76a24607c3c6b4debf7c2eaf3c957e4312f95c9;hp=c9c0f73b8686c359c477ffaf9220e57254eb9d31;hpb=3dd08094cadb23e5f36f5ba1e6727fb9a89495d3;p=friendica.git diff --git a/boot.php b/boot.php index c9c0f73b86..7d8c7040de 100644 --- a/boot.php +++ b/boot.php @@ -36,7 +36,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Asparagus'); define ( 'FRIENDICA_VERSION', '3.5-dev' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1191 ); +define ( 'DB_UPDATE_VERSION', 1192 ); /** * @brief Constant with a HTML line break. @@ -2060,3 +2060,25 @@ function current_load() { return max($load_arr); } + +/** + * @brief get c-style args + * + * @return int + */ +function argc() { + return get_app()->argc; +} + +/** + * @brief Returns the value of a argv key + * + * @param int $x argv key + * @return string Value of the argv key + */ +function argv($x) { + if(array_key_exists($x,get_app()->argv)) + return get_app()->argv[$x]; + + return ''; +}