コード例 #1
0
function refer_zilla_stat()
{
    global $ZillaName, $wpdb, $ReferZillaTable;
    $r = '<h2>' . $ZillaName . ' Statistic</h2>';
    $do = GetPostGetParam('do');
    $id = GetPostGetParam('id') + 0;
    switch ($do) {
        case 'show-link':
            $r .= refer_zilla_stat_show($id);
            break;
        default:
            $r .= refer_zilla_stat_main();
    }
    return $r;
}
コード例 #2
0
function ReferZillaManager()
{
    global $ZillaName, $wpdb, $ReferZillaTable;
    $r = '';
    if (get_option('permalink_structure') == '') {
        $r .= '<div id="message" class="error"><font size=+2>To use a plugin, you must enable permalink</font></div>';
    }
    $r .= '<h2>' . $ZillaName . ' Manager</h2>';
    $do = GetPostGetParam('do');
    $id = GetPostGetParam('id') + 0;
    switch ($do) {
        case 'linkpostcountry':
            $r .= ReferZillaPostCountry($id);
            $r .= ReferZillaManagerEdit($id);
            break;
        case 'editlink':
            $r .= ReferZillaManagerEdit($id);
            break;
        case 'deletelink':
            $r .= ReferZillaManagerDelete($id);
            break;
        case 'deletelinkok':
            $r .= ReferZillaManagerDeleteok($id) . ReferZillaManagerList();
            break;
        case 'linkpost':
            $r .= ReferZillaManagerPost() . ReferZillaManagerList();
            break;
        case 'deletecnt':
            $r .= ReferZillaManagerDelcnt($id);
            break;
        case 'deletecntok':
            $r .= ReferZillaManagerDelcntok($id) . ReferZillaManagerEdit($id);
            break;
        default:
            $r .= ReferZillaManagerList();
    }
    //$r.='Do:'.$do.' id='.$id;
    return $r;
}