コード例 #1
0
ファイル: details.php プロジェクト: tssgery/phpmotion
            if ($proceed) {
                include_once BASE_PATH . '/siteadmin/configbuilder.php';
                $myFile = BASE_PATH . '/classes/settings.php';
                @unlink($myFile);
                $fh = @fopen($myFile, 'wb');
                //or $file = false;
                @fwrite($fh, $final) or $file = false;
                @fclose($fh);
                if (!is_file($myFile)) {
                    $notifications = 1;
                    $notice = "Error! - Unable to create settings file:  {$myFile}";
                }
            }
            //______________________________________________We have finished__________________________________________
            if ($proceed) {
                setupRec(1);
                $visibility = visibility('finished', $_SESSION['prescan_error']);
            }
        }
    } else {
        //__________Show initial page_____________
        $result = $dbase->SelectRecordLoop("SELECT * FROM general_settings");
        $admin_username = '******';
        $admin_email = '';
        if (!$dbase->result_status) {
            $notifications = 1;
            $notice = "Mysql Error! - {$mysql_error}";
        }
    }
} else {
    //__________unable to connect to database_____________
コード例 #2
0
ファイル: index.php プロジェクト: tssgery/phpmotion
        switch ($value) {
            case 'safe_mode':
                $sm = $check_this['failed'];
                break;
            case 'enable_dl':
                $dl = $check_this['failed'];
                break;
        }
    }
    //____________________Check for rror___________________
    if (count($error_array) > 0) {
        $_SESSION['prescan_error'] = 1;
    } else {
        $_SESSION['prescan_error'] = 0;
    }
    setupRec(0);
}
//____visibility items put in vars)_____
foreach ($visibility as $key => $value) {
    ${$key} = $value;
}
//____Display View________________________
$TBS = new clsTinyButStrong();
$TBS->NoErr = true;
$TBS->LoadTemplate(MAIN_TEMPLATE);
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
function curl_get_file_contents($URL)
{
    $c = curl_init();
    curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);