Example #1
0
$language = getPostVar('language');
$step = getPostVar('step');
$database = getPostVar('database');
$database_host = getPostVar('database_host');
$database_user = getPostVar('database_user');
$database_pass = getPostVar('database_pass');
$database_name = getPostVar('database_name');
$admin_pass = getPostVar('admin_pass');
$admin_pass_repeat = getPostVar('admin_pass_repeat');
$ariadne_location = getPostVar('ariadne_location');
$install_demo = getPostVar('install_demo');
$install_libs = getPostVar('install_libs');
$install_docs = getPostVar('install_docs');
$enable_svn = getPostVar('enable_svn');
$enable_workspaces = getPostVar('enable_workspaces');
$downloaded_config = getPostVar('downloaded_config');
// Sanity checks for postvars, make sure the values are what we expect.
if (!isset($languages[$language])) {
    $language = $defaults['language'];
}
if (!isset($steps[$step])) {
    $step = $defaults['step'];
}
if (!isset($databases[$database])) {
    $database = '';
}
if (!isset($database_host)) {
    $database_host = $defaults['database_host'];
}
if (!isset($enable_svn)) {
    $enable_svn = $defaults['enable_svn'];
Example #2
0
 function setPageName($uri)
 {
     $last = getPostVar('last_pagename');
     $this->trace(TC_Init, 'setPageName: ' . $uri . ' last_pagename: (' . $last . ')');
     $pageurl = decodeWikiName($this, preg_replace('/\\?.*$/', '', $uri));
     if (strpos($pageurl, '.php') > 0) {
         $pageurl = empty($last) ? P_Undef : $last;
         if (!empty($last)) {
             $this->setLocation(encodeWikiName($this, $last));
         }
     }
     $this->setMacro(TM_PageName, $pageurl);
     $this->fPageURL = $pageurl;
     $this->setMacro(TM_PageLink, $pageurl);
     $this->setMacro(TM_PageTitle, $pageurl);
     $this->trace(TC_Init, 'setPageName: PageName: ' . $pageurl . TAG_NEWLINE);
 }
Example #3
0
function verifyCartItems()
{
    $cartItems = getPostVar('num_cart_items');
    if ($cartItems < 1) {
        doError("num_cart_items should be >0 and is {$cartItems}\n");
    }
}
Example #4
0
    $txt .= '  <td> <input type="text" name="pwd" size="40" maxlength="80"> </td>';
    $txt .= "</tr>\n";
    $txt .= "<tr> <td>&nbsp;</td></tr>\n";
    $txt .= "<tr>\n";
    $txt .= '  <td> <input type="submit" value="download"> </td>';
    $txt .= "</tr>\n";
    $txt .= "</table>\n";
    $txt .= "</form>\n";
    return $txt;
}
verifyMethodPost();
# check if all the POST variables are present (login, pwd)
verifyPostVarExists('login');
verifyPostVarExists('pwd');
$login = stripQuotes(myUrlDecode(getPostVar('login')));
$pwd = stripQuotes(myUrlDecode(getPostVar('pwd')));
$productList = getProductsForLoginPwd($login, $pwd);
if (0 == count($productList)) {
    echo "<b><font color=\"red\">The login '{$login}' and password '{$pwd}' combination didn't match anything in our database.\n";
    echo "Please try again. </font></b>\n";
    echo "If problem persists, please e-mail <a href=\"mailto:support@arslexis.com\">ArsLexis</a>\n";
    echo "<p>\n";
    echo getLoginForm();
    $subject = "[PAYPAL ERROR] failed login";
    $body = "Failed attempt to login using login='******' and pwd='{$pwd}'\n";
    $body .= getInterestingVars();
    sendEmail(MYEMAIL, $subject, $body);
} else {
    # display a list of products with links to download
    echo "<table>\n<tr>\n";
    echo "<td width=\"30\">&nbsp;</td>\n<td>\n";
Example #5
0
function successfullLogin(&$session)
{
    dbOpen($session);
    if (empty($session_user) && getLoginCookie($session, $user, $code) && dbCheckUser($session, $user, $code) == '') {
        $session->trace(TC_Init, 'index.php: Cookie erfolgreich gelesen');
    }
    $rc = dbCheckSession($session);
    $do_login = false;
    #$session->dumpVars ("Init");
    if ($rc != null) {
        $session->trace(TC_Init, 'keine Session gefunden: ' . $rc . ' ' . (empty($_POST['login_user']) ? "-" : '>' . $_POST['login_user']));
        $do_login = true;
    } else {
        $session->trace(TC_Init, 'login_user: '******'login_user'));
        if (isset($_POST['login_user'])) {
            $do_login = guiLoginAnswer($session, $rc);
        } else {
            $known_user = $session->fSessionUser != null && $session->fSessionUser > 0;
            $do_login = $session->fPageURL == P_Login || !$known_user;
            $session->trace(TC_Init, 'known_user: '******'t' : 'f'));
        }
    }
    $session->trace(TC_Init, "session_no: do_login: "******"t" : "f"));
    if ($do_login) {
        clearLoginCookie($session);
        guiLogin($session, $rc);
    } else {
        $session->storeSession();
    }
    return !$do_login;
}