
prototype vars
By:
aikinetix on
Jun 21st, 2012 | syntax:
PHP | size: 4.12 KB | hits: 14 | expires: Never
<!-- Prototype Forum Systems
Proto 2012
Joshua Vance
Ryan McGrath
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Prototype Forums
</title>
<!-- Meta -->
<meta charset="utf-8">
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="data/themes/style/background.css" />
<link rel="stylesheet" type="text/css" href="data/themes/style/window.css" />
<link rel="stylesheet" type="text/css" href="data/themes/style/ui.css" />
<!-- Scripts -->
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
</head>
<body>
<!-- Variables and Settings -->
<?php
$db = array
(
//Properties
"servername" => "localhost",
"username" => null, //DONT FORGET TO ENCRYPT THIS LATER!!!
"password" => null
);
//Database Connection
$con = mysql_connect($db[servername],$db[username],$db[password]);
if(!$con)
{
die('Could not connect: ' . mysql_error());
}
$global = array
(
//Management
"maxwindows" => 5;
"maxwidgets" => 10;
//Background
"bgcolor" => "#000000",
"bgsrc" => "images/backgrounds/dullwood.png" //Source from css location
"bgsizex" => "100%",
"bgsizey" => "100%",
"bgrepeat" => "no-repeat",
"bgpos" => "center",
"bgposz" => 0,
"bgorigin" => "border-box",
"bgclip" => "border-box",
"bgattachment" => "fixed"
//Standard Font and Text Options
"fontfamily" => "arial",
"fontsize" => "12px",
"fontstyle" => "normal",
"fontvariant" => "normal",
"fontweight" => "normal",
"fontsizeadjust"=> null, //Not fully supported (ff only)
"fontstretch" => null, //Not supported at all yet
"textalign" => "left",
"textdecoration"=> "normal",
"textindent" => "0px",
"textjustify" => "inner-word",
"textoverflow" => "ellipsis",
"textshadow" => null,
"texttransform" => null,
"textwrap" => null //Not supported at all yet
);
$user = array
(
//Properties
"id" => 1, //Skip 0 always
"name" => "aikinetic",
"membergroup" => "Lead Developer",
"customtitle" => "[Custom Title]",
"avatarsrc" => "/images/nirvana.jpg", //Source from css location
"avatarsizex" => "100px",
"avatarsizey" => "100px",
"posts" => "1337",
//User Links
"facebook" => "http://www.facebook.com/aikinetic",
"google" => "aikinetic@gmail.com",
"googleplus" => "https://plus.google.com/u/0/115026487091923080838/posts",
"twitter" => false,
"winlive" => "aikinetic@live.com",
"yahoo" => false,
"aol" => "aikinetic"
);
$window = array
(
//Properties
"id" => null, //Skip 0 always
"name" => null,
"class" => null,
"title" => null,
"replyopen" => false,
"optionsopen" => false,
//Size & Position
"movable" => "true",
"posx" => "50px",
"posy" => "50px",
"posz" => "25",
"sizex" => "600px",
"sizey" => "500px",
//Title Buttons
"minimize" => "true",
"maximize" => "true",
"close" => "true",
//Top Menu
"menubutton1" => "Reply",
"menulink1" => "#",
"menuprivlage1" => 1,
"menubutton2" => "Quote",
"menulink2" => "#",
"menuprivlage2" => 1,
"menubutton3" => "Mark Unread",
"menulink3" => "#",
"menuprivlage3" => 1,
"menubutton4" => "Watch Thread",
"menulink4" => "#",
"menuprivlage4" => 1,
"menubutton5" => "Share",
"menulink5" => "#",
"menuprivlage5" => 1,
"menubutton6" => "Login",
"menulink6" => "#",
"menuprivlage6" => 0,
"menubutton7" => "Register",
"menulink7" => "#",
"menuprivlage7" => 0,
"menubutton8" => "Admin",
"menulink8" => "#",
"menuprivlage8" => 3,
"menubutton9" => "Moderate",
"menulink9" => "#",
"menuprivlage9" => 2
);
?>
</body>
</html>