예제 #1
0
            while ($row = $xoopsDB->fetchArray($result)) {
                $id = $row[id];
                $account = $row[account];
                $popserver = $row[popserver];
                $port = $row[port];
                $uname = $row[uname];
                $apop = $row[apop];
                $sname = $row[sname];
                $smail = $row[smail];
                $passwd = $rc->endecrypt($uname, $row[passwd], "de");
                $delete = $row[deletefromserver];
                $show = $row[numshow];
                if ($delete == "Y") {
                    $checkbox = "checked";
                }
                showSettings($account, $popserver, $uname, $passwd, $port, $show, $checkbox, $id, $apop, $sname, $smail);
                if ($popserver == $defaultpopserver) {
                    $showflag = false;
                }
            }
        }
        if ($defaultpopserver != "" && $showflag) {
            showSingle($defaultpopserver, $singleaccountname);
        }
        if ($singleaccount == 0 && $numaccounts == -1 || $acc_count < $numaccounts) {
            showNew();
        }
    }
}
include XOOPS_ROOT_PATH . "/footer.php";
exit;
예제 #2
0
파일: manager.php 프로젝트: bmdevel/ezc
 * @subpackage Examples
 */
require 'autoload.php';
// A small example which reads settings using the manager
// The manager will take care of caching (disk and memory).
//
// If something goes wrong (file reading or setting access) it will catch
// the exception and show the problem.
/**
 * Shows the settings by using the manager
 */
function showSettings()
{
    $title = ezcConfigurationManager::getInstance()->getSetting('settings', 'site', 'title');
    print "Title is {$title}\n";
    list($dbHost, $dbUser, $dbPassword) = ezcConfigurationManager::getInstance()->getSettingsAsList('settings', 'db', array('host', 'user', 'password'));
    print "Connecting to database at '{$dbHost}' with user '{$dbUser}' and password '{$dbPassword}'.\n";
    if (ezcConfigurationManager::getInstance()->hasSetting('settings', 'db', 'socket')) {
        print 'Socket: ' . ezcConfigurationManager::getInstance()->getSetting('settings', 'db', 'socket') . "\n";
    }
}
try {
    // Start of program
    $man = ezcConfigurationManager::getInstance();
    $man->init('ezcConfigurationIniReader', dirname(__FILE__), array('useComments' => false));
    showSettings();
} catch (Exception $e) {
    print "Caught exception while reading INI file\n";
    print $e->getMessage() . "(" . $e->getCode() . ")\n";
    print $e->getTraceAsString() . "\n";
}
예제 #3
0
<?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;
}