Ejemplo n.º 1
0
 static function loaddata($tag_info)
 {
     global $_K;
     $tag_type = keke_glob_class::get_tag_type();
     if ($tag_info[tag_type] != 5) {
         $func_name = "load_" . $tag_type[$tag_info['tag_type']][2] . "_data";
         $temp_arr = self::$func_name($tag_info);
         return $temp_arr;
     }
 }
Ejemplo n.º 2
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(29);
$indus_arr = kekezu::get_industry();
$art_cat_arr = kekezu::get_table_data("*", "witkey_article_category", "", "", "", "", "art_cat_id", null);
$url = "index.php?do=tpl&view=edit_tag&tagid={$tagid}";
$tag_type_arr = keke_glob_class::get_tag_type();
$tag_obj = new Keke_witkey_tag_class();
if ($tagid) {
    $tag_obj->setWhere("tag_id='{$tagid}'");
    $taginfo = $tag_obj->query_keke_witkey_tag();
    $taginfo = $taginfo['0'];
}
if ($submit) {
    $txt_tagname or kekezu::admin_show_msg($_lang['enter_tag_name'], $url, 3, '', 'warning');
    $tag_obj2 = new Keke_witkey_tag_class();
    $tag_obj2->setWhere("tagname = '{$txt_tagname}' and tag_id!='{$tagid}'");
    if ($tag_obj2->query_keke_witkey_tag()) {
        kekezu::admin_show_msg($_lang['tag_name_inuse_please_replace'], $url, 3, '', 'warning');
    }
    $tag_obj->setTagname($txt_tagname);
    $tag_obj->setTag_type($tag_type);
    if ($tag_type == 6) {
        $code = $model_id;
    } else {
        $code = $tar_custom_code;
    }
    $tag_obj->setCode($code);
    $tag_obj->setTag_code($tag_code);
    if ($tagid) {