Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 313 → Редакция 314

/branches/ant-ng/lib/security.php
11,8 → 11,8
*
*/
 
class Security {
function __constructor() {
class Security extends Core {
function __construct() {
}
 
function checkInt($value) {
/branches/ant-ng/lib/core.php
18,17 → 18,16
protected $secure = NULL;
 
 
function __constructor($database,$prefix,$secure) {
function __construct($database, $prefix, $secure) {
$this->db = $database;
$this->prefix = $prefix;
$this->secure = $secure;
}
 
function getSetting($attr) {
$db = $this->db;
function getOption($attr) {
$result = array();
$query = "SELECT optvalue FROM ".$this->prefix."settings WHERE opt='".$attr."'";
$rq =& $db->query($query);
$query = "SELECT optvalue FROM ".$this->prefix."settings WHERE opt='".$this->secure->checkInt($attr)."'";
$rq =& $this->db->query($query);
if ($rq->numRows()!=0) {
$rq->fetchInto($element);
$result["ERR"] = 0;