diff options
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/install.php | 2 | ||||
-rw-r--r-- | mod/item.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mod/install.php b/mod/install.php index 722b1f342..a6ca48b61 100755 --- a/mod/install.php +++ b/mod/install.php @@ -6,7 +6,7 @@ $install_wizard_pass=1; function install_init(&$a){ // $baseurl/install/testrwrite to test if rewite in .htaccess is working - if ($a->argc==2 && $a->argv[1]=="testrewrite") { + if (argc() ==2 && argv(1)=="testrewrite") { echo "ok"; killme(); } diff --git a/mod/item.php b/mod/item.php index 4c30736c9..83c0fa1d3 100644 --- a/mod/item.php +++ b/mod/item.php @@ -22,6 +22,10 @@ require_once('include/items.php'); function item_post(&$a) { + + // This will change. Figure out who the observer is and whether or not + // they have permission to post here. Else ignore the post. + if((! local_user()) && (! remote_user()) && (! x($_REQUEST,'commenter'))) return; |