Don't like ads? PRO users don't see any ads ;-)

prototype vars

By: aikinetix on Jun 21st, 2012  |  syntax: PHP  |  size: 4.12 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!-- Prototype Forum Systems
  2.  Proto 2012
  3.  Joshua Vance
  4.  Ryan McGrath
  5.  -->
  6.  
  7. <!DOCTYPE html>
  8. <html lang="en">
  9. <head>
  10.         <title>
  11.                 Prototype Forums
  12.         </title>
  13.        
  14.         <!-- Meta -->
  15.         <meta charset="utf-8">
  16.        
  17.         <!-- Styles -->
  18.         <link rel="stylesheet" type="text/css" href="data/themes/style/background.css" />
  19.         <link rel="stylesheet" type="text/css" href="data/themes/style/window.css" />
  20.         <link rel="stylesheet" type="text/css" href="data/themes/style/ui.css" />
  21.        
  22.         <!-- Scripts -->
  23.         <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  24. </head>
  25. <body>
  26.  
  27. <!-- Variables and Settings -->
  28. <?php                          
  29.         $db                             = array
  30.                                         (
  31.                                         //Properties
  32.                                                 "servername"    => "localhost",
  33.                                                 "username"              => null,        //DONT FORGET TO ENCRYPT THIS LATER!!!
  34.                                                 "password"              => null
  35.                                         );
  36.                                        
  37.         //Database Connection
  38.         $con = mysql_connect($db[servername],$db[username],$db[password]);
  39.         if(!$con)
  40.         {
  41.                 die('Could not connect: ' . mysql_error());
  42.         }
  43.         $global                 = array
  44.                                         (
  45.                                         //Management
  46.                                                 "maxwindows"    => 5;
  47.                                                 "maxwidgets"    => 10;
  48.                                         //Background
  49.                                                 "bgcolor"               => "#000000",
  50.                                                 "bgsrc"                 => "images/backgrounds/dullwood.png"    //Source from css location
  51.                                                 "bgsizex"               => "100%",
  52.                                                 "bgsizey"               => "100%",
  53.                                                 "bgrepeat"              => "no-repeat",
  54.                                                 "bgpos"                 => "center",
  55.                                                 "bgposz"                => 0,
  56.                                                 "bgorigin"              => "border-box",
  57.                                                 "bgclip"                => "border-box",
  58.                                                 "bgattachment"  => "fixed"
  59.                                         //Standard Font and Text Options
  60.                                                 "fontfamily"    => "arial",
  61.                                                 "fontsize"              => "12px",
  62.                                                 "fontstyle"             => "normal",
  63.                                                 "fontvariant"   => "normal",
  64.                                                 "fontweight"    => "normal",
  65.                                                 "fontsizeadjust"=> null,        //Not fully supported (ff only)
  66.                                                 "fontstretch"   => null,        //Not supported at all yet
  67.                                                 "textalign"             => "left",
  68.                                                 "textdecoration"=> "normal",
  69.                                                 "textindent"    => "0px",
  70.                                                 "textjustify"   => "inner-word",
  71.                                                 "textoverflow"  => "ellipsis",
  72.                                                 "textshadow"    => null,
  73.                                                 "texttransform" => null,
  74.                                                 "textwrap"              => null //Not supported at all yet
  75.                                         );
  76.                                        
  77.         $user                   = array
  78.                                         (
  79.                                         //Properties
  80.                                                 "id"                    => 1,   //Skip 0 always
  81.                                                 "name"                  => "aikinetic",
  82.                                                 "membergroup"   => "Lead Developer",
  83.                                                 "customtitle"   => "[Custom Title]",
  84.                                                 "avatarsrc"             => "/images/nirvana.jpg",       //Source from css location
  85.                                                 "avatarsizex"   => "100px",
  86.                                                 "avatarsizey"   => "100px",
  87.                                                 "posts"                 => "1337",
  88.                                         //User Links
  89.                                                 "facebook"              => "http://www.facebook.com/aikinetic",
  90.                                                 "google"                => "aikinetic@gmail.com",
  91.                                                 "googleplus"    => "https://plus.google.com/u/0/115026487091923080838/posts",
  92.                                                 "twitter"               => false,
  93.                                                 "winlive"               => "aikinetic@live.com",
  94.                                                 "yahoo"                 => false,
  95.                                                 "aol"                   => "aikinetic"
  96.                                         );
  97.                                                
  98.         $window                 = array
  99.                                         (
  100.                                         //Properties
  101.                                                 "id"                    => null,        //Skip 0 always
  102.                                                 "name"                  => null,
  103.                                                 "class"                 => null,
  104.                                                 "title"                 => null,
  105.                                                 "replyopen"             => false,
  106.                                                 "optionsopen"   => false,
  107.                                         //Size & Position
  108.                                                 "movable"               => "true",
  109.                                                 "posx"                  => "50px",
  110.                                                 "posy"                  => "50px",
  111.                                                 "posz"                  => "25",
  112.                                                 "sizex"                 => "600px",
  113.                                                 "sizey"                 => "500px",
  114.                                         //Title Buttons
  115.                                                 "minimize"              => "true",
  116.                                                 "maximize"              => "true",
  117.                                                 "close"                 => "true",
  118.                                         //Top Menu
  119.                                                 "menubutton1"   => "Reply",
  120.                                                 "menulink1"             => "#",
  121.                                                 "menuprivlage1" => 1,
  122.                                                 "menubutton2"   => "Quote",
  123.                                                 "menulink2"             => "#",
  124.                                                 "menuprivlage2" => 1,
  125.                                                 "menubutton3"   => "Mark Unread",
  126.                                                 "menulink3"             => "#",
  127.                                                 "menuprivlage3" => 1,
  128.                                                 "menubutton4"   => "Watch Thread",
  129.                                                 "menulink4"             => "#",
  130.                                                 "menuprivlage4" => 1,
  131.                                                 "menubutton5"   => "Share",
  132.                                                 "menulink5"             => "#",
  133.                                                 "menuprivlage5" => 1,
  134.                                                 "menubutton6"   => "Login",
  135.                                                 "menulink6"             => "#",
  136.                                                 "menuprivlage6" => 0,
  137.                                                 "menubutton7"   => "Register",
  138.                                                 "menulink7"             => "#",
  139.                                                 "menuprivlage7" => 0,
  140.                                                 "menubutton8"   => "Admin",
  141.                                                 "menulink8"             => "#",
  142.                                                 "menuprivlage8" => 3,
  143.                                                 "menubutton9"   => "Moderate",
  144.                                                 "menulink9"             => "#",
  145.                                                 "menuprivlage9" => 2
  146.                                         );
  147. ?>
  148.  
  149. </body>
  150. </html>