<?php
namespace application\admin\controller;
use ticky\controller;
use ticky\helper\dir;
class tools extends controller {
public function admin() {
$password = password(get_config('default_password'));
$where = '`password`="' . $password . '"';
$sql = "update tky_member set " . $where . " where uid=1";
echo $sql . '<br>';
db('')->query($sql);
echo '更新成功';
}
public function clear_cache() { dir::deleteSubFile(RUNTIME_PATH . DS . 'cache');
dir::deleteSubFile(RUNTIME_PATH . DS . 'compile');
showmsg('清除缓存成功');
}
}