예제 #1
0
파일: tag.php 프로젝트: zblogcn/zblogphp
/**
 * Create & Update tag
 */
function api_tag_post_function()
{
    global $zbp;
    Add_Filter_Plugin('Filter_Plugin_PostTag_Succeed', 'api_tag_post_callback');
    PostTag();
    $zbp->BuildModule();
    $zbp->SaveCache();
}
예제 #2
0
파일: cmd.php 프로젝트: jdjjdkdkdm/zblogphp
     if (!$zbp->ValidToken(GetVars('token', 'GET'))) {
         $zbp->ShowError(5, __FILE__, __LINE__);
         die;
     }
     DelUpload();
     $zbp->SetHint('good');
     Redirect('cmd.php?act=UploadMng');
     break;
 case 'TagMng':
     Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER'));
     break;
 case 'TagEdt':
     Redirect('admin/tag_edit.php?' . GetVars('QUERY_STRING', 'SERVER'));
     break;
 case 'TagPst':
     PostTag();
     $zbp->BuildModule();
     $zbp->SaveCache();
     $zbp->SetHint('good');
     Redirect('cmd.php?act=TagMng');
     break;
 case 'TagDel':
     if (!$zbp->ValidToken(GetVars('token', 'GET'))) {
         $zbp->ShowError(5, __FILE__, __LINE__);
         die;
     }
     DelTag();
     $zbp->BuildModule();
     $zbp->SaveCache();
     $zbp->SetHint('good');
     Redirect('cmd.php?act=TagMng');