diff options
Diffstat (limited to 'plugins/mobile/backend.php')
-rw-r--r-- | plugins/mobile/backend.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/mobile/backend.php b/plugins/mobile/backend.php index a88e02a92..a62f462d5 100644 --- a/plugins/mobile/backend.php +++ b/plugins/mobile/backend.php @@ -23,7 +23,7 @@ $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - init_connection($link); + init_plugins($link); if (!$_SESSION["uid"]) return; @@ -31,28 +31,28 @@ switch ($op) { case "toggleMarked": - $cmode = db_escape_string($link, $_REQUEST["mark"]); - $id = db_escape_string($link, $_REQUEST["id"]); + $cmode = db_escape_string( $_REQUEST["mark"]); + $id = db_escape_string( $_REQUEST["id"]); - markArticlesById($link, array($id), $cmode); + markArticlesById( array($id), $cmode); break; case "togglePublished": - $cmode = db_escape_string($link, $_REQUEST["pub"]); - $id = db_escape_string($link, $_REQUEST["id"]); + $cmode = db_escape_string( $_REQUEST["pub"]); + $id = db_escape_string( $_REQUEST["id"]); - publishArticlesById($link, array($id), $cmode); + publishArticlesById( array($id), $cmode); break; case "toggleUnread": - $cmode = db_escape_string($link, $_REQUEST["unread"]); - $id = db_escape_string($link, $_REQUEST["id"]); + $cmode = db_escape_string( $_REQUEST["unread"]); + $id = db_escape_string( $_REQUEST["id"]); - catchupArticlesById($link, array($id), $cmode); + catchupArticlesById( array($id), $cmode); break; case "setPref": - $id = db_escape_string($link, $_REQUEST["id"]); - $value = db_escape_string($link, $_REQUEST["to"]); - mobile_set_pref($link, $id, $value); + $id = db_escape_string( $_REQUEST["id"]); + $value = db_escape_string( $_REQUEST["to"]); + mobile_set_pref( $id, $value); print_r($_SESSION); break; default: |