Exemplo n.º 1
0
 function index_action()
 {
     include LIB_PATH . "datacall.class.php";
     $call = new datacall("plus/data/", $this->obj);
     $row = $call->get_data($_GET[id]);
     $row = str_replace("\n", "", $row);
     $row = str_replace("\r", "", $row);
     $row = str_replace("'", "\\'", $row);
     echo "document.write('{$row}');";
 }
function smarty_function_call($paramer, &$smarty)
{
    global $config, $views;
    include LIB_PATH . "datacall.class.php";
    $obj = $views->obj;
    $call = new datacall(PLUS_PATH . "data/", $obj);
    $row = $call->get_data($paramer[id]);
    //Éú³É»º´æ
    $row = str_replace("\n", "", $row);
    $row = str_replace("\r", "", $row);
    return $row;
}
Exemplo n.º 3
0
 function update_cache($one, $two)
 {
     include LIB_PATH . "datacall.class.php";
     $call = new datacall("../data/plus/data/", $this->obj);
     $row = $call->editcache($one);
     if ($two[id] != "") {
         echo "正在更新" . $row[name] . "...请稍后!";
     }
     if ($two['id']) {
         echo "<script>location.href='index.php?m=datacall&c=cache&id=" . $two[id] . "'</script>";
         die;
     } else {
         $this->layer_msg('缓存更新成功!', 9, 0, "index.php?m=datacall");
     }
 }