Хранилища Subversion ant

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

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

/branches/ant-ng/lib/core.php
15,10 → 15,15
class Core {
protected $db = NULL;
protected $prefix = NULL;
protected $secure = NULL;
protected $owner = NULL;
 
function __constructor($database,$prefix) {
 
function __constructor($database,$prefix,$secure,$owner) {
$this->db = $database;
$this->prefix = $prefix;
$this->secure = $secure;
$this->owner = $owner;
}
 
function getSetting($attr) {
39,29 → 44,4
 
}
 
class Security extends Core {
function __constructor() {
}
 
function checkInt($value) {
return abs(intval($value));
}
 
function checkStr($value, $mode = 0) {
// mode - 0 -> wrap; mode - 1 -> strip;
if ($mode == 0) {
$result = mysql_real_escape_string($value);
} else {
$result = stripslashes($value);
}
return $result;
}
}
 
class Owner extends Core {
function __constructor() {
 
}
}
 
?>