core/api/modules/robo/class.php

29 lines
1.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
class main{
var $db; // Здесь объект для работы с MySQL
var $id;
function __construct($smarty, $settings){
// if ( @$_SESSION['dostup'] !='a' && @$_SESSION['dostup'] !='e' )header( 'Location: /403/' );/*Если не админ - шлем в опу*/
if( $settings['cachePage'] > 0 ){
//if( !@$_SESSION['user_id'] ) { /* если не авторизован - кешируем на часок */
$smarty -> caching = false;
$smarty -> cache_lifetime = $settings['cachePage'];
//}
}
}
/* ------------------------------------------------------------------------------------------------------------------------- */
function install(){ // Инсталлятор
$db = $this -> db;
/* $db->free_sql2('ALTER TABLE `users` ADD `balans` int(10) NULL');
$db->free_sql2('ALTER TABLE `users` ADD `reyt` int(10) NULL');
$db->free_sql2('ALTER TABLE `users` ADD `tip` int(2) NULL');
*/
}
/* ------------------------------------------------------------------------------------------------------------------------- */
}
?>