コード例 #1
0
ファイル: index.php プロジェクト: bcantwell/website
            if ($queued_count[0]) {
                $link = PageLinkButton('processqueue', s('Process the queue'));
                $link2 = PageLinkButton('messages&tab=active', s('View the queue'));
                if ($link || $link2) {
                    print Info(sprintf(s('You have %s message(s) waiting to be sent'), $queued_count[0]) . '<br/>' . $link . ' ' . $link2);
                }
            }
        }
    }
}
# always allow access to the about page
if (isset($_GET['page']) && $_GET['page'] == 'about') {
    $page = 'about';
    $include = 'about.php';
}
print $pageinfo->show();
if (!empty($_GET['action']) && $_GET['page'] != 'pageaction') {
    $action = basename($_GET['action']);
    if (is_file(dirname(__FILE__) . '/actions/' . $action . '.php')) {
        $status = '';
        ## the page action return the result in $status
        include dirname(__FILE__) . '/actions/' . $action . '.php';
        print '<div id="actionresult">' . $status . '</div>';
    }
}
/*
if (USEFCK) {
  $imgdir = getenv("DOCUMENT_ROOT").$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  if (!is_dir($imgdir) || !is_writeable ($imgdir)) {
    Warn("The FCK image directory does not exist, or is not writable");
  }