Skip to content
Browse files

comments

  • Loading branch information...
1 parent 1fc46aa commit 30921902a7e078f671ad8fcce1a51473182ad93c @ertancan committed Apr 14, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 index.php
View
8 index.php
@@ -1,19 +1,21 @@
<?php
connectToDb();
$action=$_GET['action'];
-if($action=="get"){
+if($action=="get"){ //action=get
getUpdates();
-}else if($action=="status"){
+}else if($action=="status"){ //action=status&user_id=1&message=mesaj&ap=FFFFFFFFFFFF
$userId=$_GET['user_id'];
$message=rawurldecode($_GET['message']);
$ap=$_GET['ap'];
addStatus($userId,$message,$ap);
echo "true";
-}else if($action=="login"){
+}else if($action=="login"){//action=login&name=kamil
$name=$_GET['name'];
newUser($name);
}
+disconnectFromDb();
+//Actions
function connectToDb(){
$user="wifind";
$password="wifi0102";

0 comments on commit 3092190

Please sign in to comment.
Something went wrong with that request. Please try again.