Beispiel #1
0
function openpage($btype)
{
    $baseref = $_SESSION["baseref"];
    $webname = $_SESSION["webname"];
    echo "<!doctype html>\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>{$webname}</title>\n";
    echo "<meta name=\"browser\" content=\"{$btype}\">\n";
    echo $btype == "msie" ? "<META HTTP-EQUIV=\"X-UA-Compatible\" CONTENT=\"IE=edge\"/>\n" : "";
    echo $btype == "msie" ? "<meta name=\"msapplication-config\" content=\"none\"/>\n" : "";
    echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";
    echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.css'>\n";
    echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.structure.css'>\n";
    echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.theme.css'>\n";
    echo "<script src='{$baseref}/jquery/1.11.2/jquery-1.11.2.js'></script>\n";
    echo "<script src='{$baseref}/jquery/1.11.2-ui/jquery-ui.js'></script>\n";
    setstyle('/', true);
    //echo "<!-- session:";print_r($_SESSION);echo "-->\n";
    echo "</head>\n";
}
Beispiel #2
0
trackhit($shandle, $webname, $scriptname, "", "", "mysqli");
$btype = !isset($_SESSION["btype"]) ? browsertype($browser) : $_SESSION["btype"];
$block = $btype == "msie" ? "block" : "inline";
echo "<!doctype html>\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>{$webname}</title>\n";
echo "<meta name=\"browser\" content=\"{$btype}\">\n";
echo $btype == "msie" ? "<META HTTP-EQUIV=\"X-UA-Compatible\" CONTENT=\"IE=edge\"/>\n" : "";
echo $btype == "msie" ? "<meta name=\"msapplication-config\" content=\"none\"/>\n" : "";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.css'>\n";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.structure.css'>\n";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.theme.css'>\n";
echo "<script src='{$baseref}/jquery/1.11.2/jquery-1.11.2.js'></script>\n";
echo "<script src='{$baseref}/jquery/1.11.2-ui/jquery-ui.js'></script>\n";
setstyle('/', true);
gac($gac);
echo "</head>\n";
echo "<body class='bodydiv'>\n";
echo "<span class='test'>{$baseref} in {$btype}</span> &nbsp; \n";
echo "jQuery <span id='jqmsg'>is not active</span><br/>\n";
echo "<a href='./resume/' title='Resume Page'>Resume Page</a>\n";
echo "<hr/>\n";
mainjava();
echo "</body>\n";
echo "</html>\n";
/////////////////////////////////////////////////////////////////////////////////////
function mainjava()
{
    echo "<script type='text/javascript'>\n";
    echo "\$(function(){\n";
Beispiel #3
0
echo "<!doctype html>\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>{$webname}</title>\n";
echo "<meta name=\"browser\" content=\"{$btype}\">\n";
echo $btype == "msie" ? "<META HTTP-EQUIV=\"X-UA-Compatible\" CONTENT=\"IE=edge\"/>\n" : "";
echo $btype == "msie" ? "<meta name=\"msapplication-config\" content=\"none\"/>\n" : "";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.css'>\n";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.structure.css'>\n";
echo "<link type='text/css' rel='stylesheet' href='{$baseref}/jquery/1.11.2-ui/jquery-ui.theme.css'>\n";
echo "<script src='{$baseref}/jquery/1.11.2/jquery-1.11.2.js'></script>\n";
echo "<script src='{$baseref}/jquery/1.11.2-ui/jquery-ui.js'></script>\n";
echo "<script src='https://maps.googleapis.com/maps/api/js'></script>\n";
echo "<!-- subroot[{$subroot}] -->\n";
setstyle('/', true);
setstyle($subroot, true);
gac($gac);
echo "</head>\n";
echo "<body class='bodydiv'>\n";
echo "<span class='test'>{$baseref} in {$btype}</span> &nbsp; \n";
echo "jQuery <span id='jqmsg'>is not active</span><br/>\n";
echo "<hr/>\n";
echo "<div id=\"map\">\n";
echo "\t<iframe frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" width=\"700\" height=\"500\" src=\"https://maps.google.com/maps?hl=en&q=2610 Cedar Park Place Abbotsford BC &ie=UTF8&t=roadmap&z=17&iwloc=B&output=embed\">\n";
//echo "	<div><small><a href=\"http://embedgooglemaps.com\">embedgooglemaps.com</a></small></div>\n";
//echo "	<div><small><a href=\"http://premiumlinkgenerator.com\">premium link generator for 2016!</a></small></div>\n";
echo "\t</iframe>\n";
echo "</div>\n";
mainjava();
echo "</body>\n";
echo "</html>\n";
Beispiel #4
0
<?php

$modbase = "modules/login";
setstyle($modbase . "/");
$cp_nextact = getvardata("cp_nextact", "view");
$user = getvardata("user", "");
$pass = getvardata("pass", "");
$answer = getvardata("answer", "");
$pass1 = getvardata("pass1", "");
$pass2 = getvardata("pass2", "");
$error = getvardata("error", "");
echo "<input type=hidden name='cp_nextact' id='cp_nextact' value=\"{$cp_nextact}\">\n";
switch ($cp_nextact) {
    case "view":
        getname($shandle, $user, $pass);
        break;
    case "veriname":
        veriname($shandle, $user, $pass);
        break;
    case "requestion":
        requestion($shandle, $user, $answer, $error);
        break;
    case "reanswer":
        checkanswer($shandle, $user, $answer);
        break;
    case "getnewpass":
        getnewpass($user, $pass1, $pass2, $error);
        break;
    case "badanswer":
        badanswer($user);
        break;
Beispiel #5
0
// September 14, 2015
// successful login needs to set $_SESSION["logstate"] = "authenticated";
if (session_id() == "") {
    session_start();
}
$baseref = $_SESSION["baseref"];
$docroot = $_SESSION["docroot"];
$shandle = $_SESSION["shandle"];
$goplace = isset($goplace) ? $goplace : "login";
$pathspec = isset($pathspec) ? $pathspec : "pages/login";
$logmod = isset($logmod) ? $logmod : "{$pathspec}";
$exitplace = isset($exitplace) ? $exitplace : "staff";
$weblog = "{$baseref}/{$pathspec}";
echo "<!-- 2 [{$goplace}][{$pathspec}][{$logmod}][{$weblog}] -->\n";
ichecktables($shandle, "accounts", "{$logmod}/config/accounts.sql");
setstyle("/{$pathspec}/", true);
// get post variables
$username = getvardata("username", "", 00);
$password = getvardata("password", "", 99);
$shortcut = getvardata("shortcut", "splash.php", 99);
$debug = getvardata("debug", false, 99);
//echo "<!-- in login with [$shortcut] -->\n";
// ok if we have username & password, let's see if we can find a match
$showpage = "false";
$errstate = "";
if (strlen($username) > 0 && strlen($password) > 0) {
    $sql = "select password from accounts where username=\"{$username}\" limit 1";
    if ($debug) {
        echo "<!-- sql[{$sql}] -->\n";
    }
    $sresult = mysqli_query($shandle, $sql);
Beispiel #6
0
include_once "header.php";
// Starting page
echo "<!doctype html>\n";
echo "<html>\n";
echo "<head>\n";
echo "\t<title>{$webname}</title>\n";
echo "\t<meta name=\"browser\" content=\"{$btype}\">\n";
echo $btype == "msie" ? "\t<META HTTP-EQUIV=\"X-UA-Compatible\" CONTENT=\"IE=edge\"/>\n" : "";
echo $btype == "msie" ? "\t<meta name=\"msapplication-config\" content=\"none\"/>\n" : "";
echo "\t<link type='text/css' rel='stylesheet' href=\"{$baseref}/jquery/1.11.2-ui/jquery-ui.css\">\n";
echo "\t<link type='text/css' rel='stylesheet' href=\"{$baseref}/jquery/1.11.2-ui/jquery-ui.structure.css\">\n";
echo "\t<link type='text/css' rel='stylesheet' href=\"{$baseref}/jquery/1.11.2-ui/jquery-ui.theme.css\">\n";
echo "\t<script src='{$baseref}/jquery/1.11.2/jquery-1.11.2.js'></script>\n";
echo "\t<script src='{$baseref}/jquery/1.11.2-ui/jquery-ui.js'></script>\n";
echo "\t<link type='text/css' rel='stylesheet' href=\"{$baseref}/css/activecss/activecss.css\">\n";
setstyle('/', true, false, $activetheme);
echo "</head>\n";
echo "<body class='activebody'>\n";
echo "\t<form name='accform' id='accform' action=\"{$scriptname}\" method=\"POST\">\n";
echo "\t\t<input type=hidden name='nextact' id='nextact' value=\"{$nextact}\">\n";
echo "\t\t<input type=hidden name='elaps' id='elaps' value=\"{$elaps}\">\n";
echo "\t\t<input type=hidden name='activebrowser' id='activebrowser' value=\"{$activebrowser}\">\n";
echo "\t\t<input type=hidden name='activetheme' id='activetheme' value=\"{$activetheme}\">\n";
echo "\t\t<input type=hidden name='activepage' id='activepage' value=\"{$activepage}\">\n";
echo "\t\t<input type=hidden name='activesection' id='activesection' value=\"{$activesection}\">\n";
infobox();
browserspot();
themedrop();
pagebox();
sectionbox();
showstyles();
Beispiel #7
0
<?php

$debug = true;
$docroot = $_SESSION["docroot"];
$subroot = subroot(__FILE__, $_SESSION["scriptname"]);
if ($debug) {
    echo "<!-- subroot[{$subroot}] -->\n";
}
setstyle(subroot(__FILE__, $_SESSION["scriptname"]), true);
require "{$docroot}{$subroot}/objects.php";
require "{$docroot}{$subroot}/view.php";
$inaction = getvardata("inaction", "view", 99);
$activetab = getvardata("activetab", "client", 99);
echo "<input type=hidden name='inaction' id='inaction' value='{$inaction}'>\n";
echo "<input type=hidden name='activetab' id='activetab' value='{$activetab}'>\n";
// we are not included in top scope, look for values in $_SESSION
$nextact = $_SESSION["nextact"];
$tablist = getActiveTabs($activetab);
showActiveTabs($tablist);
$thisclient = new actor("WRO001", $debug);
$thisclient->getActorData();
showActorData($thisclient);
getActorJava();
/////////////////////////////////////////////////////////
// functions from here to eof
/////////////////////////////////////////////////////////
function getActiveTabs($tabtype, $debug = false)
{
    $roles = array();
    $counter = 0;
    $shandle = $_SESSION["shandle"];
//echo "<!-- before [$btncheck] [$cfrom] [$defrom] [$fromdate] [$todate] -->\n";
$todate = $cfrom == "from" && $btncheck == "xBtn" ? date("m/d/Y", strtotime($defrom, strtotime($fromdate))) : $todate;
$fromdate = $cfrom == "to" && $btncheck == "xBtn" ? date("m/d/Y", strtotime($defrom, strtotime($todate))) : $fromdate;
//echo "<!-- after [$fromdate] [$todate] -->\n";
$_POST["fromdate"] = $fromdate;
$_POST["todate"] = $todate;
//    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
echo "<!doctype html>\n";
echo "<HTML>\n";
echo "<HEAD>\n";
//echo "<!-- username[$username] -->\n";
echo "<meta name=\"msapplication-config\" content=\"none\"/>\n";
echo "<title>Period Summary Report Generator</title>\n";
echo "<link REL=STYLESHEET HREF=\"./jquery/css/ui-lightness/jquery-ui-1.10.4.custom.css\" TYPE='text/css'>\n";
set_style($baseref);
setstyle("/");
echo "<script src='./jquery/js/jquery-1.10.2.js'></script>\n";
echo "<script src='./jquery/js/jquery-ui-1.10.4.custom.js'></script>\n";
echo "<style>\n";
echo "\t.ui-datepicker {\n";
echo "\t  margin-left:-100px;\n";
echo "\t  z-index: 1000;\n";
echo "\t  font-size:12px;\n";
echo "\t}\n";
echo "</style>\n";
echo "</HEAD>\n";
echo "<body class='main_box'>\n";
echo "\t<form name='iform' id='iform' action='{$webname}' method='POST'>\n";
echo "\t\t<input type=hidden name='nextact' id='nextact' value='{$nextact}'>\n";
echo "\t\t<input type=hidden name='btncheck' id='btncheck' value='{$btncheck}'>\n";
echo "\t\t<input type=hidden name='firstloop' id='firstloop' value='no'>\n";
Beispiel #9
0
$links["ufcw"]["target"] = "_blank";
$links["ufcw"]["title"] = "2012 UFCW Site";
$links["abby"]["name"] = "2014 Anglican Abbotsford Site";
$links["abby"]["link"] = "http://abby.homedns.org";
$links["abby"]["target"] = "_blank";
$links["abby"]["title"] = "Anglican Abbotsford site";
$links["sumcode"]["name"] = "Serve CSS file from Mysql Table";
$links["sumcode"]["link"] = "showcode.php?repname={$docroot}/css/activecss/style.css.php";
$links["sumcode"]["target"] = "_blank";
$links["sumcode"]["title"] = "Sample code page with java and php";
echo "<!doctype html>\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>{$webname}</title>\n";
//echo "<link REL=STYLESHEET HREF='$baseref/css/activecss/main.css' TYPE='text/css'>\n";
setstyle('/resume/', true);
echo "<meta name=\"browser\" content=\"{$btype}\">\n";
echo "<STYLE TYPE=\"text/css\">\n";
echo "BODY{font-family:Arial,Helvetica,sans-serif;}\n";
echo "</STYLE>\n";
echo "</head>\n";
echo "<body onmouseout=\"showdis('off');\" class='bodydiv'>\n";
echo "<div name='bodybg' id='bodybg'>\n";
echo "\t<img id='bgi' name='bgi' class='bodyimage' src='bgpics/small_office_space.jpg'>\n";
echo "\t<div id='lowspot' name='lowspot' class='lowerdiv'>\n";
echo "\t\t<img src='bgpics/office_desk.gif' height=100%>\n";
echo "\t</div>\n";
echo "</div>\n";
echo "<div class='topdiv'>\n";
echo "\t{$webname}<br/>\n";
echo "\t<p class='test'>This is my resume site, where I have links to samples of my past work, The ReMuS Period \n";