Example #1
0
<?php

session_name("EnterAccessCFERecibos");
session_start();
include_once "../business/Config/ClassConfig.php";
$config = new ClassConfig();
//---------
if ($_GET["get_data_user"]) {
    exit(json_encode($config->get_data_user()));
}
Example #2
0
File: MySQL.php Project: jasny/Q
    public function beginTransaction()
    {
        $this->nativeQuery("START TRANSACTION");
    }
    /**
     * Commit changes made in the current transaction.
     */
    public function commit()
    {
        $this->nativeQuery("COMMIT");
    }
    /**
     * Discard changes made in the current transaction.
     */
    public function rollBack()
    {
        $this->nativeQuery("ROLLBACK");
    }
    /**
     * Gets the number of affected rows in a previous MySQL operation.
     * 
     * @return int
     */
    public function affectedRows()
    {
        return $this->native->affected_rows;
    }
}
if (class_exists('Q\\ClassConfig')) {
    ClassConfig::extractBin('Q\\DB_MySQL');
}
Example #3
0
 /**
  * Class constructor
  */
 protected function __construct()
 {
     $this->messageVars['system'] = $_SERVER['SERVER_NAME'];
     $this->messageVars['email'] = 'info@' . $_SERVER['SERVER_NAME'];
     $this->_logs = new ErrorHandler_Logs();
     $this->ignoreRepeatedErrors = ini_get('ignore_repeated_errors');
     ClassConfig::extractBin($this);
 }