]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
DE update to the strings
[friendica.git] / boot.php
index c9c0f73b8686c359c477ffaf9220e57254eb9d31..497a97b0eca04a7c0062ef75e07c1cc934cce0ab 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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 '';
+}