Skip to content

Commit

Permalink
deleted spaces added mysql user pass
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSterenson committed Jun 6, 2016
1 parent 1d34ce4 commit c0c1758
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion BetafaceAPI/BetafaceAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,4 @@ public function get_tiny_url($url) {
return $data;
}
}
?>
?>
2 changes: 0 additions & 2 deletions php/Classes/Attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ function __toString() {
Update Date : " . $this->UpdateDate . " <br>
Updated By User : " . $this->UpdatedByUser . " <br>";
}

#endregion Methods

}
?>
5 changes: 2 additions & 3 deletions php/Classes/Facebook_photo.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,5 @@ function __toString() {
return "Id : " . $this->Id . " <br>FacebookId : " . $this->FacebookId . " <br>Photo Id : " . $this->FacebookPhotoId . " <br>Update Date : " . $this->UpdateDate . " <br>Photo Link : " . $this->PhotoLink . " <br>Num Of Likes : " . $this->NumOfLikes . " <br>is Valid Photo : " . $this->isValidPhoto;
}
#endregion Methods
}

?>
}
?>
2 changes: 1 addition & 1 deletion php/Classes/Facebook_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ function __toString() {
}
#endregion Methods
}
?>
?>
1 change: 0 additions & 1 deletion php/Classes/PhotoComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,4 @@ function __toString(){
}
#endregion Methods
}

?>
14 changes: 9 additions & 5 deletions php/DbWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,18 @@

class DbWrapper {

#region Fields
private $servername = "profilyze.cwhbbmexocbn.eu-west-1.rds.amazonaws.com:3306";//"localhost";
/* private $servername = "profilyze.cwhbbmexocbn.eu-west-1.rds.amazonaws.com:3306";//"localhost";
private $username = "profilyze";//"root";
private $password = "profilyze";//"";
private $dbname = "profilyze";//"profileanalysis";
private $dbname = "profilyze";//"profileanalysis"; */

#region Fields
private $servername = "mysqlsrv.cs.tau.ac.il";//"localhost";
private $username = "DbMysql07";//"root";
private $password = "DbMysql07";//"";
private $dbname = "DbMysql07";//"profileanalysis";


private $allowed_tables_array = array();

public $connection = null;
Expand Down Expand Up @@ -1236,7 +1242,5 @@ public function most_accurate(){
return json_encode($rows);
}
#endregion Methods (public)

}

?>
2 changes: 1 addition & 1 deletion php/Facebook_Photoattributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ function insert_att_all_photo() {
//echo $num."\n";
insert_att_all_photo();
//insert_att_all_photo($num);
?>
?>
2 changes: 0 additions & 2 deletions php/addName.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,5 @@ function extract_likes_num($html){
$LikesQuery = 'UPDATE `photos` SET `NumOfLikes`= '. $likes. ' WHERE `Id`= '.$myId;
echo $LikesQuery . "<br>";
$dbWrapper->execute($LikesQuery);


}
?>
2 changes: 1 addition & 1 deletion php/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,4 +427,4 @@ protected function extractAttributes()
} catch (Exception $e) {
echo json_encode(Array('error' => $e->getMessage()));
}
?>
?>
1 change: 0 additions & 1 deletion php/extract_uid.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ function getData($data)
//example: default to something if nothing has been passed
echo "Enter facebook URL";
}

?>

0 comments on commit c0c1758

Please sign in to comment.