Commit f3fb3292 authored by Irving Sánchez's avatar Irving Sánchez

update documents

parent 46194cd2
...@@ -7,7 +7,7 @@ class Database2 ...@@ -7,7 +7,7 @@ class Database2
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
//$password = "PkJXPQFykKLmS3cWhqmZKNYE"; //$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -18,4 +18,4 @@ class Database2 ...@@ -18,4 +18,4 @@ class Database2
} }
} }
\ No newline at end of file
...@@ -26,7 +26,7 @@ if (mysql_query("DROP DATABASE PPD", $MySQLConnection)){ ...@@ -26,7 +26,7 @@ if (mysql_query("DROP DATABASE PPD", $MySQLConnection)){
// ==================== CREACIÓN // ==================== CREACIÓN
// Creamos la base de datos principal... // Creamos la base de datos principal...
if (mysql_query("CREATE DATABASE PPD", $MySQLConnection)){ if (mysql_query("CREATE DATABASE RIR", $MySQLConnection)){
echo "<br>Base de datos creada..."; echo "<br>Base de datos creada...";
}else{ }else{
// Verificamos si ya había sido creada... // Verificamos si ya había sido creada...
...@@ -65,4 +65,4 @@ mysql_close($MySQLConnection); ...@@ -65,4 +65,4 @@ mysql_close($MySQLConnection);
// Terminamos la configuración y avisamos del éxito... // Terminamos la configuración y avisamos del éxito...
echo "<br>OK! Servidor MySQL creado correctamente..." echo "<br>OK! Servidor MySQL creado correctamente..."
?> ?>
\ No newline at end of file
...@@ -78,7 +78,7 @@ $db['default'] = array( ...@@ -78,7 +78,7 @@ $db['default'] = array(
'hostname' => 'localhost', 'hostname' => 'localhost',
'username' => 'root', 'username' => 'root',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE', 'password' => 'PkJXPQFykKLmS3cWhqmZKNYE',
'database' => 'PPD', 'database' => 'RIR',
'dbdriver' => 'mysqli', 'dbdriver' => 'mysqli',
'dbprefix' => '', 'dbprefix' => '',
'pconnect' => FALSE, 'pconnect' => FALSE,
...@@ -93,4 +93,4 @@ $db['default'] = array( ...@@ -93,4 +93,4 @@ $db['default'] = array(
'stricton' => FALSE, 'stricton' => FALSE,
'failover' => array(), 'failover' => array(),
'save_queries' => TRUE 'save_queries' => TRUE
); );
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -6,7 +6,7 @@ function connectDBBDD(){ ...@@ -6,7 +6,7 @@ function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -215,4 +215,4 @@ if($_GET['sefargzxfkdjfkldsmflakdsmaskdmfaoivaostbxtghbxbgtg'] == "adwdawd.edfa. ...@@ -215,4 +215,4 @@ if($_GET['sefargzxfkdjfkldsmflakdsmaskdmfaoivaostbxtghbxbgtg'] == "adwdawd.edfa.
}else if($_GET['sefargzlskmgfoirmnfsoirnfoaeinfozeifnosefnzekxtghbxbgtg'] == "adwdawdaefaefa.f8aef.46ae4fas8e4f.aef4.se4fsef.s8ef4es8f4d...-egser"){ }else if($_GET['sefargzlskmgfoirmnfsoirnfoaeinfozeifnosefnzekxtghbxbgtg'] == "adwdawdaefaefa.f8aef.46ae4fas8e4f.aef4.se4fsef.s8ef4es8f4d...-egser"){
filtros_head(); filtros_head();
}else die(); }else die();
?> ?>
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -36,7 +36,7 @@ class baseDeDatosIndex{ ...@@ -36,7 +36,7 @@ class baseDeDatosIndex{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -85,4 +85,4 @@ $config=dirname(__FILE__).'/protected/config/main.php'; ...@@ -85,4 +85,4 @@ $config=dirname(__FILE__).'/protected/config/main.php';
//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii); require_once($yii);
Yii::createWebApplication($config)->run(); Yii::createWebApplication($config)->run();
\ No newline at end of file
...@@ -10,11 +10,11 @@ class Funciones extends CApplicationComponent{ ...@@ -10,11 +10,11 @@ class Funciones extends CApplicationComponent{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
/*$servername = "localhost"; /*$servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "ppd";*/ $dbname = "RIR";*/
// Create connection // Create connection
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
...@@ -177,7 +177,7 @@ class Funciones extends CApplicationComponent{ ...@@ -177,7 +177,7 @@ class Funciones extends CApplicationComponent{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -50,7 +50,7 @@ $config = array( ...@@ -50,7 +50,7 @@ $config = array(
'loginUrl' => array('panel/acceso/login'), 'loginUrl' => array('panel/acceso/login'),
), ),
'db'=>array( 'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=PPD', 'connectionString' => 'mysql:host=localhost;dbname=RIR',
'emulatePrepare' => true, 'emulatePrepare' => true,
'username' => 'root', 'username' => 'root',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE', 'password' => 'PkJXPQFykKLmS3cWhqmZKNYE',
......
...@@ -113,7 +113,7 @@ class SiteController extends Controller{ ...@@ -113,7 +113,7 @@ class SiteController extends Controller{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -148,4 +148,4 @@ $cs->registerScript('plugin_ck', ...@@ -148,4 +148,4 @@ $cs->registerScript('plugin_ck',
CClientScript::POS_END); CClientScript::POS_END);
?> ?>
\ No newline at end of file
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -4,7 +4,7 @@ class baseDeDatosDS{ ...@@ -4,7 +4,7 @@ class baseDeDatosDS{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -104,4 +104,4 @@ $cs->registerScript('plugin_ck', ...@@ -104,4 +104,4 @@ $cs->registerScript('plugin_ck',
}); });
});',CClientScript::POS_END); });',CClientScript::POS_END);
?> ?>
\ No newline at end of file
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -9365,3 +9365,17 @@ Stack trace: ...@@ -9365,3 +9365,17 @@ Stack trace:
REQUEST_URI=/RIR/index.php/panel/login REQUEST_URI=/RIR/index.php/panel/login
HTTP_REFERER=http://localhost/RIR/CyT/index.php/integrantes/edit?id_integrante=11 HTTP_REFERER=http://localhost/RIR/CyT/index.php/integrantes/edit?id_integrante=11
--- ---
2019/09/05 13:56:56 [error] [exception.Error] Error: Call to undefined function curl_init() in /data/WWW/PHPServer/RIR/protected/controllers/Go4itController.php:33
Stack trace:
#0 /data/WWW/PHPServer/RIR/yii-master/framework/web/actions/CInlineAction.php(50): Go4itController->actionCotization()
#1 /data/WWW/PHPServer/RIR/yii-master/framework/web/CController.php(309): CInlineAction->runWithParams(Array)
#2 /data/WWW/PHPServer/RIR/yii-master/framework/web/CController.php(287): CController->runAction(Object(CInlineAction))
#3 /data/WWW/PHPServer/RIR/yii-master/framework/web/CController.php(266): CController->runActionWithFilters(Object(CInlineAction), Array)
#4 /data/WWW/PHPServer/RIR/yii-master/framework/web/CWebApplication.php(283): CController->run('cotization')
#5 /data/WWW/PHPServer/RIR/yii-master/framework/web/CWebApplication.php(142): CWebApplication->runController('go4it/cotizatio...')
#6 /data/WWW/PHPServer/RIR/yii-master/framework/base/CApplication.php(162): CWebApplication->processRequest()
#7 /data/WWW/PHPServer/RIR/index.php(88): CApplication->run()
#8 {main}
REQUEST_URI=/RIR/index.php/go4it/cotization/
HTTP_REFERER=http://localhost/RIR/index.php/go4it
---
...@@ -4,7 +4,7 @@ class baseDeDatos{ ...@@ -4,7 +4,7 @@ class baseDeDatos{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -9,7 +9,7 @@ class baseDeDatosVisita{ ...@@ -9,7 +9,7 @@ class baseDeDatosVisita{
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "PPD"; $dbname = "RIR";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -426,4 +426,4 @@ if($op == "fh48fgid8os74e47is7y3grt73s0"){ ...@@ -426,4 +426,4 @@ if($op == "fh48fgid8os74e47is7y3grt73s0"){
$baseDeDatosVisita = new baseDeDatosVisita(); $baseDeDatosVisita = new baseDeDatosVisita();
$baseDeDatosVisita -> readtableDB20(); $baseDeDatosVisita -> readtableDB20();
die(); die();
}else{die();} ?> }else{die();} ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment