当前位置: 首页>>代码示例>>PHP>>正文


PHP saveSettings函数代码示例

本文整理汇总了PHP中saveSettings函数的典型用法代码示例。如果您正苦于以下问题:PHP saveSettings函数的具体用法?PHP saveSettings怎么用?PHP saveSettings使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了saveSettings函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __cleanup

 function __cleanup()
 {
     if (isset($_ENV['SOFTHOOKS']['SHUTDOWN'])) {
         foreach ($_ENV['SOFTHOOKS']['SHUTDOWN'] as $hook) {
             executeUserParams($hook["FUNC"], $hook["OBJ"]);
         }
     }
     if (function_exists("runHooks")) {
         runHooks("shutdown");
     }
     if (function_exists("saveSettings")) {
         saveSettings();
     }
     if (function_exists("saveSiteSettings")) {
         saveSiteSettings();
     }
     if (function_exists("saveSession")) {
         saveSession();
     }
     if (class_exists("LogiksCache")) {
         MetaCache::getInstance()->dumpAllCache();
         DataCache::getInstance()->dumpAllCache();
     }
     if (class_exists("Database")) {
         Database::closeAll();
     }
     // $error = error_get_last();
     //    if ($error['type'] == 1) {
     //        header('HTTP/1.1 500 Internal Server Error');
     //        $errorMsg = htmlspecialchars_decode(strip_tags($error['message']));
     //        exit($errorMsg);
     //    }
 }
开发者ID:logiks,项目名称:logiks-core,代码行数:33,代码来源:bootlogiks.php

示例2: processSettings

function processSettings($calID)
{
    //get settings from calendar
    $dbSet = getSettings();
    if (!empty($dbSet)) {
        echo "<li>Calendar settings retrieved from database.</li>\n";
    }
    //convert 2.7.1 date settings to new settings
    $ds = isset($dbSet['dateSep']) ? $dbSet['dateSep'] : '.';
    //dateSep: LuxCal 2.7.1
    if (isset($dbSet['dateFormat'])) {
        switch ($dbSet['dateFormat']) {
            //dateSep: LuxCal 2.7.1 format
            case '1':
                $dbSet['dateFormat'] = 'd' . $ds . 'm' . $ds . 'y';
                break;
            case '2':
                $dbSet['dateFormat'] = 'm' . $ds . 'd' . $ds . 'y';
                break;
            case '3':
                $dbSet['dateFormat'] = 'y' . $ds . 'm' . $ds . 'd';
        }
    }
    if (empty($dbSet['MdFormat'])) {
        $dbSet['MdFormat'] = empty($dbSet['dateUSorEU']) ? 'M d' : 'd M';
    }
    //dateUSorEU: LuxCal 2.7.1
    if (empty($dbSet['MdyFormat'])) {
        $dbSet['MdyFormat'] = empty($dbSet['dateUSorEU']) ? 'M d, y' : 'd M y';
    }
    if (empty($dbSet['MyFormat'])) {
        $dbSet['MyFormat'] = empty($dbSet['dateUSorEU']) ? 'M y' : 'M y';
    }
    if (empty($dbSet['DMdFormat'])) {
        $dbSet['DMdFormat'] = empty($dbSet['dateUSorEU']) ? 'WD, M d' : 'WD d M';
    }
    if (empty($dbSet['DMdyFormat'])) {
        $dbSet['DMdyFormat'] = empty($dbSet['dateUSorEU']) ? 'WD, M d, y' : 'WD d M y';
    }
    if (empty($dbSet['timeFormat'])) {
        $dbSet['timeFormat'] = empty($dbSet['time24']) ? 'h:ma' : 'h.m';
    }
    //time24: LuxCal 2.7.1
    //check and complete settings
    checkSettings($dbSet);
    //if $dbSet['x'] empty, set to default value
    echo "<li>Calendar settings verified/completed.</li>\n";
    //save calendar settings to calendar
    $result = saveSettings($calID, $dbSet, true);
    if ($result === false) {
        exit('Error: Unable to save settings in database. Check database credentials.');
    }
    echo "<li>Calendar settings saved to database.</li>\n";
    return $result;
}
开发者ID:krievley,项目名称:schedule,代码行数:55,代码来源:upgrade323.php

示例3: sendNewValidation

<?php

include "../universal/config.php";
//---sendValidation---//
if (isset($_POST["sendNewValidation"])) {
    include "sendNewValidation.php";
    $result = sendNewValidation($_POST["newEmail"]);
    echo $result;
} elseif (isset($_POST["validateNewEmail"])) {
    include "validateNewEmail.php";
    $result = validateNewEmail($_POST["key"], $_POST["newEmail"]);
    echo $result;
} elseif (isset($_POST["saveSettings"])) {
    include "saveSettings.php";
    $result = saveSettings($_POST["newUsername"], $_POST["newPassword"], $_POST["emailNotifications"], $_POST["newAbout"], $_POST["newPicture"]);
    echo $result;
} elseif (isset($_POST["showSettings"])) {
    include "showSettings.php";
    $result = showSettings();
    echo $result;
} elseif (isset($_POST["killSessions"])) {
    include "killSessions.php";
    $result = killSessions();
    echo $result;
}
开发者ID:jamesbmayr,项目名称:project-tracker,代码行数:25,代码来源:settingsForm.php

示例4: showError

     showError($db, $sql);
     // Test and setup some paths for the TF settings
     $pythonCmd = $cfg["pythonCmd"];
     $btphpbin = getcwd() . "/TF_BitTornado/btphptornado.py";
     $tfQManager = getcwd() . "/TF_BitTornado/tfQManager.py";
     $maketorrent = getcwd() . "/TF_BitTornado/btmakemetafile.py";
     $btshowmetainfo = getcwd() . "/TF_BitTornado/btshowmetainfo.py";
     $tfPath = getcwd() . "/downloads/";
     if (!isFile($cfg["pythonCmd"])) {
         $pythonCmd = trim(shell_exec("which python"));
         if ($pythonCmd == "") {
             $pythonCmd = $cfg["pythonCmd"];
         }
     }
     $settings = array("pythonCmd" => $pythonCmd, "btphpbin" => $btphpbin, "tfQManager" => $tfQManager, "btmakemetafile" => $maketorrent, "btshowmetainfo" => $btshowmetainfo, "path" => $tfPath, "btclient_tornado_bin" => $btphpbin);
     saveSettings($settings);
     AuditAction($cfg["constants"]["update"], "Initial Settings Updated for first login.");
     $next_loc = "admin.php?op=configSettings";
 }
 $sql = "SELECT uid, hits, hide_offline, theme, language_file FROM tf_users WHERE user_id=" . $db->qstr($user) . " AND password=" . $db->qstr(md5($iamhim));
 $result = $db->Execute($sql);
 showError($db, $sql);
 list($uid, $hits, $cfg["hide_offline"], $cfg["theme"], $cfg["language_file"]) = $result->FetchRow();
 if (!array_key_exists("shutdown", $cfg)) {
     $cfg['shutdown'] = '';
 }
 if (!array_key_exists("upload_rate", $cfg)) {
     $cfg['upload_rate'] = '';
 }
 if ($result->RecordCount() == 1) {
     // suc. auth.
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:login.php

示例5: buildSearchEngineLinks

function buildSearchEngineLinks($selectedEngine = 'TorrentSpy')
{
    global $cfg;
    $settingsNeedsSaving = false;
    $settings['searchEngineLinks'] = array();
    $output = '';
    if (!array_key_exists('searchEngineLinks', $cfg) || !is_array($cfg['searchEngineLinks'])) {
        saveSettings($settings);
    }
    $handle = opendir("./searchEngines");
    while ($entry = readdir($handle)) {
        $entrys[] = $entry;
    }
    natcasesort($entrys);
    foreach ($entrys as $entry) {
        if ($entry != "." && $entry != ".." && substr($entry, 0, 1) != ".") {
            if (strpos($entry, "Engine.php")) {
                $tmpEngine = str_replace("Engine", '', substr($entry, 0, strpos($entry, ".")));
                if (array_key_exists($tmpEngine, $cfg['searchEngineLinks'])) {
                    $hreflink = $cfg['searchEngineLinks'][$tmpEngine];
                    $settings['searchEngineLinks'][$tmpEngine] = $hreflink;
                } else {
                    $hreflink = getEngineLink($tmpEngine);
                    $settings['searchEngineLinks'][$tmpEngine] = $hreflink;
                    $settingsNeedsSaving = true;
                }
                if (strlen($hreflink) > 0) {
                    $output .= "<a href=\"http://" . $hreflink . "/\" target=\"_blank\">";
                    if ($selectedEngine == $tmpEngine) {
                        $output .= "<b>" . $hreflink . "</b>";
                    } else {
                        $output .= $hreflink;
                    }
                    $output .= "</a><br>\n";
                }
            }
        }
    }
    if (count($settings['searchEngineLinks'], COUNT_RECURSIVE) != count($cfg['searchEngineLinks'], COUNT_RECURSIVE)) {
        $settingsNeedsSaving = true;
    }
    if ($settingsNeedsSaving) {
        natcasesort($settings['searchEngineLinks']);
        saveSettings($settings);
    }
    return $output;
}
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:47,代码来源:functions.tf.php

示例6: saveSettings

     $settings = $_POST['settings'];
     try {
         saveSettings($settings);
         writeSettingsCache();
         succeedFlag();
     } catch (Exception $e) {
         echo $e;
     }
     break;
 case "savemail":
 case "savefunopen":
 case "savecopyright":
 case "saveattachset":
     $settings = $_POST['settings'];
     try {
         saveSettings($settings, 0);
         writeGlobalCache();
         succeedFlag();
     } catch (Exception $e) {
         echo $e;
     }
     break;
 case "savecontact":
     $settings = $_POST['settings'];
     try {
         $db->row_delete("contact", "langid={$_SYS['alangid']}");
         $settings['langid'] = $_SYS['alangid'];
         $db->row_insert("contact", $settings);
         writeContactCache();
         printRes("{$_AL['main.ct.setsucceed']}<script>setTimeout(function(){reloadSelf('admin.php?inc=main&action=contact');},2000);</script>");
     } catch (Exception $e) {
开发者ID:rust1989,项目名称:edit,代码行数:31,代码来源:main_ajax.php

示例7: saveSettings

    $i++;
    if (!fieldsValid($pSet['popFieldsMcal'])) {
        $errors[$i] = " class='inputError'";
    }
    $i++;
    if (!fieldsValid($pSet['popFieldsSbar'])) {
        $errors[$i] = " class='inputError'";
    }
    $i++;
    if ($pSet['sideBarDays'] < 1 or $pSet['sideBarDays'] > 365) {
        $errors[$i] = " class='inputError'";
    }
    $i++;
    //no errors, save settings in database
    if (!in_array(" class='inputError'", $errors)) {
        $result = saveSettings($calID, $pSet, true);
        if ($result) {
            $msg = $ax['set_settings_saved'];
        } else {
            $msg = $ax['set_save_error'];
        }
    } else {
        //errors found
        $msg .= $ax['set_missing_invalid'];
    }
}
echo "<br><p class=\"error noPrint\">" . ($msg ? $msg : $ax['hover_for_details']) . "</p>\n";
?>
<!-- display form fields -->
<form action='index.php?lc' method='post'>
<div class='scrollBoxSe'>
开发者ID:krievley,项目名称:schedule,代码行数:31,代码来源:settings.php

示例8: cl

    $settings['SET_SHORT_URL_ON'] = cl($_POST['setShortUrl']) == 1 ? 1 : 0;
    $settings['SET_PRIVATE_IMG_ON'] = cl($_POST['setPrivateImg']) == 1 ? 1 : 0;
    $settings['SET_DIS_UPLOAD'] = cl($_POST['setDisUpload']) == 1 ? 1 : 0;
    $settings['SET_LANGUAGE'] = cl($_POST['setLanguage']);
    $settings['SET_IMAGE_WIDGIT'] = cl($_POST['setImageWidgit']) == 1 ? 1 : 0;
    $settings['SET_NODUPLICATE'] = cl($_POST['setNoDuplicate']) == 1 ? 1 : 0;
    $settings['SET_RESIZE_IMG_ON'] = cl($_POST['setResizeImg']) == 1 ? 1 : 0;
    $settings['SET_ADDTHIS'] = cl($_POST['setAddThis']);
    //Short url settings
    $settings['SET_SHORT_URL_API'] = cl($_POST['setSUrlApi']);
    $settings['SET_SHORT_URL_API_URL'] = cl($_POST['setSUrlApiUrl']);
    $settings['SET_SHORT_URL_PASS'] = cl($_POST['setSUrlApiPass']);
    $settings['SET_SHORT_URL_USER'] = cl($_POST['setSUrlApiUesr']);
    // save settings
    if (!is_feedback('error')) {
        if (saveSettings(CFINCPATH . 'set.php', $settings)) {
            user_feedback('success', _T("admin_set_suc_update"), 'saveing_settings');
            cl_cache_folder();
        } else {
            user_feedback('error', _T("admin_set_err_saveing_settings"), 'admin_set_saveing_settings');
        }
    }
}
// page settings
$page['id'] = 'set';
$page['title'] = 'Admin Settings page';
$page['description'] = '';
$page['tipsy'] = true;
$page['fancybox'] = true;
require CFROOTPATH . 'admin/admin_page_header.php';
?>
开发者ID:xctcc,项目名称:congtu,代码行数:31,代码来源:admin_settings.php

示例9: restore2ChronoContact

 case "restore2":
     restore2ChronoContact(0, $option);
     break;
 case "backexcel":
     BackupExcel($id, $option);
     break;
 case "backcsv":
     BackupCSV($id, $option);
     break;
     ////// config
 ////// config
 case 'config':
     showConfig($option);
     break;
 case 'saveconfig':
     saveSettings($option);
     break;
 case 'cancelconfig':
     cancelSettings($option);
     break;
 case 'save_conf':
     save_conf($option);
     break;
     ////// wizard
 ////// wizard
 case 'form_wizard':
     form_wizard('', $option);
     break;
 case 'wizardedit':
     form_wizard($cid[0], $option);
     break;
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:admin.chronocontact.php

示例10: firstLogin

/**
 * first Login
 *
 * @param $username
 * @param $password
 */
function firstLogin($username = '', $password = '')
{
    global $cfg, $db;
    if (!isset($username)) {
        return 0;
    }
    if (!isset($password)) {
        return 0;
    }
    if ($username == '') {
        return 0;
    }
    if ($password == '') {
        return 0;
    }
    $create_time = time();
    // This user is first in DB.  Make them super admin.
    // this is The Super USER, add them to the user table
    $record = array('user_id' => strtolower($username), 'password' => md5($password), 'hits' => 1, 'last_visit' => $create_time, 'time_created' => $create_time, 'user_level' => 2, 'hide_offline' => 0, 'theme' => $cfg["default_theme"], 'language_file' => $cfg["default_language"], 'state' => 1);
    $sTable = 'tf_users';
    $sql = $db->GetInsertSql($sTable, $record);
    $result = $db->Execute($sql);
    if ($db->ErrorNo() != 0) {
        dbError($sql);
    }
    // Test and setup some paths for the TF settings
    // path
    $tfPath = $cfg["path"];
    if (!is_dir($cfg["path"])) {
        $tfPath = getcwd() . "/downloads/";
    }
    // settings
    $settings = array("path" => $tfPath, "pythonCmd" => $cfg["pythonCmd"], "perlCmd" => $cfg["perlCmd"], "bin_php" => $cfg["bin_php"], "bin_grep" => $cfg["bin_grep"], "bin_awk" => $cfg["bin_awk"], "bin_du" => $cfg["bin_du"], "bin_wget" => $cfg["bin_wget"], "bin_unrar" => $cfg["bin_unrar"], "bin_unzip" => $cfg["bin_unzip"], "bin_cksfv" => $cfg["bin_cksfv"], "bin_vlc" => $cfg["bin_vlc"], "bin_uudeview" => $cfg["bin_uudeview"], "btclient_transmission_bin" => $cfg["btclient_transmission_bin"], "bin_netstat" => $cfg["bin_netstat"], "bin_sockstat" => $cfg["bin_sockstat"]);
    // binaries to test
    $binaries = array("pythonCmd" => $cfg["pythonCmd"], "perlCmd" => $cfg["perlCmd"], "bin_php" => $cfg["bin_php"], "bin_grep" => $cfg["bin_grep"], "bin_awk" => $cfg["bin_awk"], "bin_du" => $cfg["bin_du"], "bin_wget" => $cfg["bin_wget"], "bin_unrar" => $cfg["bin_unrar"], "bin_unzip" => $cfg["bin_unzip"], "bin_cksfv" => $cfg["bin_cksfv"], "bin_vlc" => $cfg["bin_vlc"], "bin_uudeview" => $cfg["bin_uudeview"], "btclient_transmission_bin" => $cfg["btclient_transmission_bin"], "bin_netstat" => $cfg["bin_netstat"], "bin_sockstat" => $cfg["bin_sockstat"]);
    // bins for which
    $bins = array("pythonCmd" => "python", "perlCmd" => "perl", "bin_php" => "php", "bin_grep" => "grep", "bin_awk" => "awk", "bin_du" => "du", "bin_wget" => "wget", "bin_unrar" => "unrar", "bin_unzip" => "unzip", "bin_cksfv" => "cksfv", "bin_vlc" => "vlc", "bin_uudeview" => "uudeview", "btclient_transmission_bin" => "transmissioncli", "bin_netstat" => "netstat", "bin_sockstat" => "sockstat");
    // check
    foreach ($binaries as $key => $value) {
        if (!is_file($value)) {
            $bin = "";
            $bin = @trim(shell_exec("which " . $bins[$key]));
            if ($bin != "") {
                $settings[$key] = $bin;
            }
        }
    }
    // save
    saveSettings('tf_settings', $settings);
    AuditAction($cfg["constants"]["update"], "Initial Settings Updated for first login.");
}
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:57,代码来源:functions.common.auth.php

示例11: register

function register()
{
    global $SETTINGS, $APP;
    # NOTE: Disabling or modifying licensing or registration code violates your license agreement and is willful copyright infringement.
    # NOTE: Copyright infringement can be very expensive: http://en.wikipedia.org/wiki/Statutory_damages_for_copyright_infringement
    # NOTE: Please do not steal our software.
    // get filepath
    $caller = array_pop(@debug_backtrace());
    $filepath = realpath($caller['file']);
    ### Build registration query
    $hostname = getFirstDefinedValue($_SERVER["HTTP_HOST"], $_SERVER["SERVER_NAME"], @$_SERVER["SERVER_ADDR"]);
    $url = $_SERVER["SCRIPT_NAME"];
    $reginfo = 'reg1=' . urlencode($SETTINGS['licenseCompanyName']);
    # Company Name
    $reginfo .= '&reg2=' . urlencode($SETTINGS['licenseDomainName']);
    # Domain Name
    $reginfo .= '&lnum=' . isValidProductId($SETTINGS['licenseProductId']);
    # License Number
    $reginfo .= '&prog=' . $APP['id'];
    # Program Id
    $reginfo .= '&ver=' . $APP['version'];
    # Program Version
    $reginfo .= '&url=' . urlencode("{$hostname}{$url}");
    # script url
    $reginfo .= '&filepath=' . urlencode($filepath);
    # script filepath
    # get license status
    list($response, $statusCode) = getPage("http://www.registerSoftware.to/register/register.cgi?{$reginfo}");
    if (preg_match('/license.invalid/', $response)) {
        $isDisabled = 1;
    } else {
        if (preg_match('/license.valid/', $response)) {
            $isDisabled = 0;
        } else {
            $isDisabled = $SETTINGS['isDisabled'];
        }
    }
    # on unrecognized response do nothing
    # save settings
    $SETTINGS['installPath'] = _getInstallPath();
    $SETTINGS['isDisabled'] = $isDisabled;
    $SETTINGS['dateRegistered'] = time();
    saveSettings();
    //
    return !$isDisabled;
}
开发者ID:afineedge,项目名称:thinkbeforeyoulaunch,代码行数:46,代码来源:admin_functions.php

示例12: verifyData

<?php

include_once '../../../wp-load.php';
global $wpdb;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $data = verifyData();
    saveSettings($data);
} else {
    echo json_encode(array("status" => "error", "message" => "Bad HTTP method"));
    die("Incorret HTTP Method");
}
function verifyData()
{
    if (strlen($_POST["account_sid"]) != 34) {
        echo json_encode(array("status" => "error", "message" => "AccountSID must be 34 characters"));
        die;
    }
    if (strlen($_POST["account_auth"]) != 32) {
        echo json_encode(array("status" => "error", "message" => "AccountAuth must be 32 characters"));
        die;
    }
    if (strlen($_POST["service_sid"]) != 34) {
        echo json_encode(array("status" => "error", "message" => "ServiceSID must be 34 characters"));
        die;
    }
    $phone = $_POST["phone"];
    $phone = str_replace("(", "", $phone);
    $phone = str_replace(")", "", $phone);
    $phone = str_replace("-", "", $phone);
    $phone = str_replace("+", "", $phone);
    $phone = str_replace(" ", "", $phone);
开发者ID:EPICmynamesBG,项目名称:WP-SMS-Messaging,代码行数:31,代码来源:editSettings.php

示例13: array

        } else {
            $idGroupe = $groupe;
        }
        if ($versionUrl == '') {
            $versionUrl = '-';
        }
        if ($versionPass == '') {
            $versionPass = '-';
        }
        $blog = array('groupe' => $idGroupe, 'name' => $name, 'url' => $url, 'version_url' => $versionUrl, 'version_pass' => $versionPass);
        if ($idSite != '') {
            $gSettings['sites']['site'][$idSite] = $blog;
        } else {
            $gSettings['sites']['site'][] = $blog;
        }
        saveSettings($gSettings);
        cacheDel(md5($url));
        redirectInterne('./');
    }
}
if ($eSite['version_url'] == '-') {
    $eSite['version_url'] = '';
}
if ($eSite['version_pass'] == '-') {
    $eSite['version_pass'] = '';
}
$metaTitle = 'PWD - Ajouter / modifier un blog';
include 'includes/header.inc.php';
include 'includes/navigation.inc.php';
?>
        <div id="page-wrapper">
开发者ID:Prelude,项目名称:dashboard-wordpress,代码行数:31,代码来源:add.php

示例14: saveSettings

             $setting['timeoffset'] = '8';
             $setting['humantime'] = '0';
             $setting['isgzip'] = '0';
             $setting['isoff'] = '0';
             $setting['metakeywords'] = $_AL['lang.sys.keyword'];
             $setting['metadescription'] = $_AL['lang.sys.desc'];
             $setting['urlrewrite'] = '0';
             $setting['template'] = '6kzz';
             $setting['templatelang'] = 'zh_cn.php';
             $setting['perpagepro'] = '12';
             $setting['perpageart'] = '15';
             $setting['perpagemsg'] = '10';
             $setting['signupsecuritycode'] = '0';
             $setting['loginsecuritycode'] = '0';
             $setting['msgsecuritycode'] = '0';
             saveSettings($setting);
             //Contact
             $contact['company'] = $_AL['lang.ct.contact'];
             $contact['contact'] = $_AL['lang.ct.contact'];
             $contact['email'] = $_AL['lang.ct.email'];
             $contact['qq'] = $_AL['lang.ct.qq'];
             $contact['phone'] = $_AL['lang.ct.phone'];
             $db->row_delete("contact", "langid={$_SYS['alangid']}");
             $contact['langid'] = $_SYS['alangid'];
             $db->row_insert("contact", $contact);
         }
     }
     writeLangsCache();
     reBuildLang();
     succeedFlag();
 } catch (Exception $e) {
开发者ID:rust1989,项目名称:edit,代码行数:31,代码来源:lang_ajax.php

示例15: saveConfig

    if (!fieldsValid($pSet['popFieldsSbar'])) {
        $errors[$i] = " class='inputError'";
    }
    $i++;
    if ($pSet['sideBarDays'] < 1 or $pSet['sideBarDays'] > 365) {
        $errors[$i] = " class='inputError'";
    }
    $i++;
    //no errors, save settings in database
    if (!in_array(" class='inputError'", $errors)) {
        if ($calMenu != $dbSel) {
            $dbSel = $calMenu;
            saveConfig();
            //save config data
        }
        $result = saveSettings($pSet);
        if ($result) {
            $msg = $ax['set_settings_saved'];
        } else {
            $msg = $ax['set_save_error'];
        }
    } else {
        //errors found
        $msg .= $ax['set_missing_invalid'];
    }
}
echo "<br><p class=\"error noPrint\">" . ($msg ? $msg : $ax['hover_for_details']) . "</p>\n";
//display form fields
echo "<form action='index.php?lc' method='post'>\n\t<input type='hidden' name='token' value='{$_SESSION['token']}'>\n\t<input class='button saveSettings noPrint' type='submit' name='save' value='{$ax['set_save_settings']}'>\n\t<div class='scrollBoxSe'>\n\t<div class='centerBoxFix'>";
$selected = " selected='selected'";
$i = 0;
开发者ID:sanluca,项目名称:py-acqua-hw,代码行数:31,代码来源:settings.php


注:本文中的saveSettings函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。