コード例 #1
0
ファイル: index.php プロジェクト: Sajaki/addons
$nothing = 1;
/*
this is just to make zanix go "huh?!?! what the hell!!??!! :P
*/
$addon['config']['rg_cat11en'] = '';
/*
OK here is where we check and see if the table is installed if not it installes it using the install script
*/
// ----[ Decide what to do next ]---------------------------
if (isset($_POST['ss_op']) && $_POST['ss_op'] != '') {
    switch ($_POST['ss_op']) {
        case 'settings':
            $functions->processData($_POST);
            break;
        case 'incert':
            $functions->incertData($_POST);
            break;
        case 'delete':
            if (is_array($_POST['deletess'])) {
                foreach ($_POST['deletess'] as $delete) {
                    $functions->deletesc($delete);
                }
                //$functions->deletesc( $_POST['deletess'] );
            } else {
                $functions->deletesc($_POST['deletess']);
            }
            break;
        case 'approve':
            if ($_POST['approve']) {
                foreach ($_POST['approve'] as $approve) {
                    $functions->approvesc($approve);