Example #1
0
 function TCheckConstants()
 {
     global $actions, $str;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Поиск неиспользуемых констант', 'Check constants'), 'go' => array('Начать поиск', 'Start'), 'delete' => array('Удалить выбранные', 'Delete selected'), 'check_all' => array('Выделить все', 'Check all'), 'uncheck_all' => array('Снять выделение', 'UnCheck all')));
     $ini_file = 'modules/' . $this->name . '/module.ini';
     if (!is_file($ini_file)) {
         $ini_file = inc($this->name . '/module.ini');
     }
     $config = ini_read($ini_file);
     if (isset($config) && isset($config['exclude']) && !empty($config['exclude'])) {
         $this->exclude = array_keys($config['exclude']);
     }
 }
Example #2
0
 function TCheckFiles()
 {
     global $actions, $str;
     TTable::TTable();
     $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Поиск неиспользуемых файлов', 'Check files'), 'go' => array('Начать поиск', 'Start'), 'delete' => array('Удалить выбранные', 'Delete selected'), 'move' => array('Переместить выбранные в папку ', 'Move selected into'), 'check_all' => array('Выделить все', 'Check all'), 'uncheck_all' => array('Снять выделение', 'UnCheck all'), 'pause' => array('Остановить поиск', 'Pause'), 'play' => array('Продолжить поиск', 'Play'), 'clear_cache' => array('Сбросить кеш', 'Clear cache')));
     $ini_file = 'modules/' . $this->name . '/module.ini';
     if (!is_file($ini_file)) {
         $ini_file = inc($this->name . '/module.ini');
     }
     $config = ini_read($ini_file);
     if (isset($config) && isset($config['exclude_tables']) && !empty($config['exclude_tables'])) {
         $this->exclude_tables = array_keys($config['exclude_tables']);
     }
     $actions[$this->name] = array();
 }
Example #3
0
function ini_change($filename, $data)
{
    $ini = ini_read($filename);
    return ini_write($filename, array_merge($ini, $data));
}
Example #4
0
File: fm2.php Project: romlg/cms36
 function ReadIni($filename)
 {
     return ini_read($filename);
 }