Example #1
0
<?php

require_once 'includes/includes.php';
pageinit('home');
startbody();
pageheader();
startpagecontent();
startcontent();
createaccountform();
endcontent();
startsidebar();
createAccountInfo();
endsidebar();
divclear();
endpagecontent();
pagefooter();
endbody();
pageend();
Example #2
0
    header("Location: index.php");
}
$action = "";
/* get the action */
if (isset($_GET['action'])) {
    $action = $_GET['action'];
}
/* get the action */
if (isset($_POST['searchkey'])) {
    $_SESSION['searchkey'] = $_POST['searchkey'];
}
/*clear the search*/
if (isset($_GET['clear']) && $_GET['clear'] == 'yes') {
    unset($_SESSION['searchkey']);
}
pageinit('workspace');
startbody();
pageheader();
startpagecontent();
startcontent();
switch ($action) {
    case "password":
        changepassword();
        break;
    case "logout":
        unset($_SESSION['userid']);
        header("Location: index.php");
        break;
    case "translate":
        if (isset($_GET['id']) && is_numeric($_GET['id'])) {
            $wordid = $_GET['id'];