Skip to content

Commit

Permalink
Informando o DEPRECATED - uso só pra testes
Browse files Browse the repository at this point in the history
  • Loading branch information
edoura committed Jun 17, 2016
1 parent b414856 commit 0bfdbfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,8 +1,8 @@
# api
# api `[DEPRECATED - uso só para testes]`
RESTful API oferecendo recursos do Ongbook.

Utilizando:
- Slim microframework PHP

Tenha o **composer** instalado globalmente. E utilize o comando:
`composer.phar install`
`composer install`
9 changes: 3 additions & 6 deletions app/libs/connect.php
Expand Up @@ -4,12 +4,9 @@
function getConnection()
{
try{

// Servidor MySQL de teste http://freemysqlhosting.net

$db_username = "sql3121340";
$db_password = "riEU3kzLzf";
$connection = new PDO("mysql:host=sql3.freemysqlhosting.net:3306;dbname=sql3121340", $db_username, $db_password);
$db_username = "u769266113_bdob";
$db_password = " ";
$connection = new PDO("mysql:host=mysql.hostinger.com.br;dbname=u769266113_bdob", $db_username, $db_password);
$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
Expand Down
2 changes: 1 addition & 1 deletion index.php
@@ -1,5 +1,5 @@
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Origin: *');
require_once 'vendor/autoload.php';

\Slim\Slim::registerAutoloader();
Expand Down

0 comments on commit 0bfdbfd

Please sign in to comment.