phpmp-commits Mailing List for phpMyPublications (Page 23)
Status: Pre-Alpha
Brought to you by:
heimidal
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(69) |
May
(1) |
Jun
|
Jul
(53) |
Aug
(27) |
Sep
|
Oct
|
Nov
(35) |
Dec
(71) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(5) |
Feb
(65) |
Mar
|
Apr
(15) |
May
(40) |
Jun
(72) |
Jul
|
Aug
(2) |
Sep
(95) |
Oct
(37) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brian R. <hei...@us...> - 2002-04-10 04:38:41
|
Update of /cvsroot/phpmp/phpMP/modules In directory usw-pr-cvs1:/tmp/cvs-serv22503/modules Added Files: usercp.php Log Message: Adding a little module support. --- NEW FILE: usercp.php --- <? $file = 'usercp.php'; class Module { var $pagetitle; function Init() { $this->pagetitle = "User Control Panel"; } function MakeContent() { global $Template; $Template->Blocking('BeginBig', array(PAGETITLE => ".::" . $this->pagetitle . "::.")); print "This is a test...<br>This is only a test...<br>\n"; $Template->Blocking('EndBig'); } } $Module = new Module(); ?> |
Update of /cvsroot/phpmp/phpMP/templates/TealMP/images In directory usw-pr-cvs1:/tmp/cvs-serv24413 Added Files: footer_left.gif footer_right.gif footer_top.gif grad_ld_lr.gif grad_ld_rl.gif logo.jpg navbg.gif pixel.gif topbg.jpg Log Message: Finishing attempt at reloading corrupt images. |
From: Brian R. <hei...@us...> - 2002-04-09 23:39:39
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/images In directory usw-pr-cvs1:/tmp/cvs-serv23561 Removed Files: bottombg.gif footer_bottom.gif footer_left.gif footer_right.gif footer_top.gif grad_ld_lr.gif grad_ld_rl.gif logo.jpg navbg.gif pixel.gif topbg.jpg Log Message: Attempt at removing JPG corruption. --- bottombg.gif DELETED --- --- footer_bottom.gif DELETED --- --- footer_left.gif DELETED --- --- footer_right.gif DELETED --- --- footer_top.gif DELETED --- --- grad_ld_lr.gif DELETED --- --- grad_ld_rl.gif DELETED --- --- logo.jpg DELETED --- --- navbg.gif DELETED --- --- pixel.gif DELETED --- --- topbg.jpg DELETED --- |
From: Brian R. <hei...@us...> - 2002-04-09 22:23:24
|
Update of /cvsroot/phpmp/phpMP/templates/default/css In directory usw-pr-cvs1:/tmp/cvs-serv30926/css Removed Files: tpl_style.css Log Message: Removing useless files. --- tpl_style.css DELETED --- |
From: Brian R. <hei...@us...> - 2002-04-09 22:23:24
|
Update of /cvsroot/phpmp/phpMP/templates/default/images In directory usw-pr-cvs1:/tmp/cvs-serv30926/images Removed Files: bottombg.gif logo.gif navbg.gif navbotbg.gif navend.gif navendleft.gif navendright.gif navtopbg.gif pixel.gif topbg.gif Log Message: Removing useless files. --- bottombg.gif DELETED --- --- logo.gif DELETED --- --- navbg.gif DELETED --- --- navbotbg.gif DELETED --- --- navend.gif DELETED --- --- navendleft.gif DELETED --- --- navendright.gif DELETED --- --- navtopbg.gif DELETED --- --- pixel.gif DELETED --- --- topbg.gif DELETED --- |
From: Brian R. <hei...@us...> - 2002-04-09 22:16:18
|
Update of /cvsroot/phpmp/phpMP/templates/default In directory usw-pr-cvs1:/tmp/cvs-serv28181/default Removed Files: blocking.cfg box.tpl footer.tpl header.tpl tplvars.cfg Log Message: Deleting old, bad theme. --- blocking.cfg DELETED --- --- box.tpl DELETED --- --- footer.tpl DELETED --- --- header.tpl DELETED --- --- tplvars.cfg DELETED --- |
From: Brian R. <hei...@us...> - 2002-04-09 22:14:04
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/images In directory usw-pr-cvs1:/tmp/cvs-serv27348 Added Files: topbg.jpg Log Message: Missed an image. --- NEW FILE: topbg.jpg --- ÿØÿà |
From: Brian R. <hei...@us...> - 2002-04-09 22:10:44
|
Update of /cvsroot/phpmp/phpMP In directory usw-pr-cvs1:/tmp/cvs-serv26065 Modified Files: index.php Log Message: Removed an obscenity. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** index.php 9 Apr 2002 22:05:24 -0000 1.12 --- index.php 9 Apr 2002 22:10:40 -0000 1.13 *************** *** 58,69 **** $Template->Blocking('BeginBig', array(PAGETITLE => ".::phpMP Sample Page::.")); - - //$string = " Hey People :) ;) Like those smilies? Anyway [b] this is bbcode [/b]. And of course we always have people that want to use html <font face=\"New York\">Now this is a differernt font</font>. I found this cool site at http://www.apple.com. Anyway, it will kick your ass dumb motherfuckers. Peace out dude ji...@op..."; - - //$parser = new Parser; - - //$retstring = $parser->Run("1", "1", "1", "1", $CONF["CensorList"], "1", $CONF["AllowableHTML"], $string); - - //echo $string . "<br><br>" . $retstring; print "Welcome, one and all!!!!!<br>\n"; --- 58,61 ---- |
From: Brian R. <hei...@us...> - 2002-04-09 22:05:29
|
Update of /cvsroot/phpmp/phpMP In directory usw-pr-cvs1:/tmp/cvs-serv24078 Modified Files: index.php Log Message: Updated Templating engine to produce a block title for main blocks. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** index.php 8 Apr 2002 22:29:13 -0000 1.11 --- index.php 9 Apr 2002 22:05:24 -0000 1.12 *************** *** 57,61 **** $Template->Blocking('BeginMain'); ! $Template->Blocking('BeginBig'); //$string = " Hey People :) ;) Like those smilies? Anyway [b] this is bbcode [/b]. And of course we always have people that want to use html <font face=\"New York\">Now this is a differernt font</font>. I found this cool site at http://www.apple.com. Anyway, it will kick your ass dumb motherfuckers. Peace out dude ji...@op..."; --- 57,61 ---- $Template->Blocking('BeginMain'); ! $Template->Blocking('BeginBig', array(PAGETITLE => ".::phpMP Sample Page::.")); //$string = " Hey People :) ;) Like those smilies? Anyway [b] this is bbcode [/b]. And of course we always have people that want to use html <font face=\"New York\">Now this is a differernt font</font>. I found this cool site at http://www.apple.com. Anyway, it will kick your ass dumb motherfuckers. Peace out dude ji...@op..."; |
From: Brian R. <hei...@us...> - 2002-04-09 22:05:29
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP In directory usw-pr-cvs1:/tmp/cvs-serv24078/templates/TealMP Modified Files: blocking.cfg tplvars.cfg Log Message: Updated Templating engine to produce a block title for main blocks. Index: blocking.cfg =================================================================== RCS file: /cvsroot/phpmp/phpMP/templates/TealMP/blocking.cfg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** blocking.cfg 9 Apr 2002 03:59:01 -0000 1.1 --- blocking.cfg 9 Apr 2002 22:05:25 -0000 1.2 *************** *** 12,16 **** <td height="20" class="tabletitle"> <table width="100%" class="tabletitle" bordercolor=black background="'.$MPCONF['GEN']['uri'].'/templates/'.$MPCONF['TPL']['tpl_name'].'/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black> ! <font color=white><small>( title not yet implemented }</small></font> </td></tr></table> </td> --- 12,16 ---- <td height="20" class="tabletitle"> <table width="100%" class="tabletitle" bordercolor=black background="'.$MPCONF['GEN']['uri'].'/templates/'.$MPCONF['TPL']['tpl_name'].'/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black> ! <font color=white><small>{PAGETITLE}</small></font> </td></tr></table> </td> Index: tplvars.cfg =================================================================== RCS file: /cvsroot/phpmp/phpMP/templates/TealMP/tplvars.cfg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** tplvars.cfg 9 Apr 2002 03:59:01 -0000 1.1 --- tplvars.cfg 9 Apr 2002 22:05:25 -0000 1.2 *************** *** 6,10 **** $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/support.php">support</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/about.php">about</a> <font color="#0a4a67">•</font> '; ! $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/devworld/">dev.world</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmp/phpMP/">cvs</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/devworld/modules/index.php?action=list">modules</a> <font color="#0a4a67">•</font> '; --- 6,10 ---- $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/support.php">support</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/about.php">about</a> <font color="#0a4a67">•</font> '; ! $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/team.php">team</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmp/phpMP/">cvs</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/devworld/modules/index.php?action=list">modules</a> <font color="#0a4a67">•</font> '; |
From: Brian R. <hei...@us...> - 2002-04-09 22:05:29
|
Update of /cvsroot/phpmp/phpMP/includes In directory usw-pr-cvs1:/tmp/cvs-serv24078/includes Modified Files: template.php Log Message: Updated Templating engine to produce a block title for main blocks. Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** template.php 5 Apr 2002 23:15:29 -0000 1.8 --- template.php 9 Apr 2002 22:05:24 -0000 1.9 *************** *** 151,159 **** // Starts the blocking process for a sidebar. // Returns: none. ! // Additional Note: BeginBlocking() uses the variables set in $TPLVars, which must be present. ! function Blocking($function) { global $TPLVars; if($this->block_vars_read != 1) { $this->ReadTplConfig('blocking'); } --- 151,166 ---- // Starts the blocking process for a sidebar. // Returns: none. ! // Additional Note: Blocking() uses the variables set in $TPLVars, which must be present. ! function Blocking($function, $tpl_array = array()) { global $TPLVars; if($this->block_vars_read != 1) { $this->ReadTplConfig('blocking'); + } + + $tpl_array = $this->AssignDefaults($tpl_array); + + while( list($key,$value) = each($tpl_array) ) { + $key = '{' . $key . '}'; + $TPLVars["$function"] = ereg_replace("$key", "$value", $TPLVars["$function"]); } |
From: Brian R. <hei...@us...> - 2002-04-09 03:59:04
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP In directory usw-pr-cvs1:/tmp/cvs-serv25279/templates/TealMP Added Files: blocking.cfg box.tpl footer.tpl header.tpl tplvars.cfg Log Message: Added new theme. --- NEW FILE: blocking.cfg --- <? $TPLVars['BeginBlock'] .= '<td valign="top" width="150">'."\n"; $TPLVars['EndBlock'] .= '</td>'."\n"; $TPLVars['BeginMain'] .= '<td valign="top">'."\n"; $TPLVars['EndMain'] .= '</td>'."\n"; $TPLVars['BeginBig'] .= '<table width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="20" class="tabletitle"> <table width="100%" class="tabletitle" bordercolor=black background="'.$MPCONF['GEN']['uri'].'/templates/'.$MPCONF['TPL']['tpl_name'].'/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black> <font color=white><small>( title not yet implemented }</small></font> </td></tr></table> </td> </tr> <tr> <td> <table width="100%" class="tableborder" bordercolor=black><tr><td>'; $TPLVars['EndBig'] .= ' </td></tr></table> </td> </tr> </table>'; ?> --- NEW FILE: box.tpl --- <table width="150" cellspacing="0" cellpadding="0"> <tr> <td height="20" class="tabletitle"> <table width="100%" class="tabletitle" bordercolor=black background="{MPURLPATH}/templates/{TPLNAME}/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black> <font color=white><small>{TITLE}</small></font> </td></tr></table> </td> </tr> <tr> <td> <table width="100%" class="tableborder" bordercolor=black><tr><td> {CONTENT} </td></tr></table> </td> </tr> </table> --- NEW FILE: footer.tpl --- <table width="100%" cellpadding="0" cellspacing="0"><tr><td> <table class="header" width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="100%" bgcolor=black colspan="2"><img src="{MPURLPATH}/templates/{TPLNAME}/images/pixel.gif" /></td> </tr> <tr> <td width="100%" colspan="2" align="center" bgcolor="#C0C0C0"><font size="2">{NAVBAR}</font></td> </tr> <tr> <td width="100%" bgcolor=black colspan="2"><img src="{MPURLPATH}/templates/{TPLNAME}/images/pixel.gif" /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor=black align="center"> <tr> <td height="25" width="100%" background="{MPURLPATH}/templates/{TPLNAME}/images/footer_bottom.gif" bgcolor="#000000;"></td> </tr> <tr> <td height="1" bgcolor="#000000;"></td> </tr> <tr> <table border="0" cellspacing="0" width="100%" cellpadding="0"><tr> <td width="100" align="left" background="{MPURLPATH}/templates/{TPLNAME}/images/footer_left.gif"></td> <td width="*" align="center"><font size="-2">{COPYRIGHT}</font></td> <td width="100" align="right" background="{MPURLPATH}/templates/{TPLNAME}/images/footer_right.gif"></td> </tr></table></tr> <tr> <td height="1" bgcolor="#000000;"></td> </tr> <tr> <td height="25" width="100%" background="{MPURLPATH}/templates/{TPLNAME}/images/footer_top.gif" bgcolor="#000000;"></td> </tr> <tr> <td width="100%" height="*" valign="bottom" align="right"><a href="http://www.trevorj.com" class="tjcopyright">:: design by trevorj ::</a> </tr> </table> </td> </tr> </td></tr></table> </body> </html> --- NEW FILE: header.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>{PAGETITLE}</title> <script src="{MPURLPATH}/templates/{TPLNAME}/js/fade.js" language="Javascript"></script> <link rel="stylesheet" href="{MPURLPATH}/templates/{TPLNAME}/css/tpl_style.css" type="text/css" /> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table class="header" width="100%" bgcolor="#0f9fbc" cellpadding="0" cellspacing="0"> <tr> <td width="300" align="left"><img src="{MPURLPATH}/templates/{TPLNAME}/images/logo.jpg" /></td> <td width="100%" align="center" background="{MPURLPATH}/templates/{TPLNAME}/images/topbg.jpg"><img src="{MPURLPATH}/templates/{TPLNAME}/images/pixel.gif" /></td> <td width="25" align="right" background="{MPURLPATH}/templates/{TPLNAME}/images/grad_ld_lr.gif"><img src="{MPURLPATH}/templates/{TPLNAME}/images/grad_ld_lr.gif" /></td> </tr> <tr> <td width="100%" bgcolor=black colspan="5"><img src="{MPURLPATH}/templates/{TPLNAME}/images/pixel.gif" /></td> </tr> <tr> <td width="100%" colspan="5" align="center" bgcolor="#C0C0C0"><font size="2">{NAVBAR}</font></td> </tr> <tr> <td width="100%" bgcolor=black colspan="5"><img src="{MPURLPATH}/templates/{TPLNAME}/images/pixel.gif" /></td> </tr> </table> <table width="100%" bgcolor="#9fc2c6" cellspacing="0" cellpadding="2"> <tr> --- NEW FILE: tplvars.cfg --- <? $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/index.php">home</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/features.php">features</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/downloads.php">files</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/support.php">support</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="' . $MPCONF['GEN']['uri'] . '/about.php">about</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/devworld/">dev.world</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmp/phpMP/">cvs</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://phpmp.sourceforge.net/devworld/modules/index.php?action=list">modules</a> <font color="#0a4a67">•</font> '; $array['NAVBAR'] .= '<a href="http://www.sourceforge.net/">sourceforge</a>'; ?> |
From: Brian R. <hei...@us...> - 2002-04-09 03:59:04
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/js In directory usw-pr-cvs1:/tmp/cvs-serv25279/templates/TealMP/js Added Files: fade.js Log Message: Added new theme. --- NEW FILE: fade.js --- /*****************************************\ || Fade Script Version 3.1 || || http://anarchos.xs.mw/fade.phtml || || (c) July 2001 || || _____________________________________ || || Created by: || || Anarchos > anarchos.xs.mw || || _____________________________________ || || auto-startColor by Mike West || || mi...@we... || || _____________________________________ || || uniqueID upgrade by DubMatrix || || http://www.princefari.com || || _____________________________________ || || Color conversion from decimal to || || hex (dehexize function) by: || || Litejet > li...@ho... || || _____________________________________ || || Fade, hex, setColor functions by: || || Dak Phoenix > phoenix-archetypes.com || || _____________________________________ || || domouseover/out based on scripts by || || The Shadow > www.icon.co.za/~andrewk || || || \*****************************************/ /************* **** <config> **/ fadeColor = "#003342"; // color to fade to //fadeColor = "#7A9EC5"; // color to fade to stepIn = 17; // delay when fading in stepOut = 25; // delay when fading out /* set to true or false; true will ** cause all links to fade automatically ** (you won't need to add class="fade") ***/ autoFade = true; /* set to true or false; true will cause all CSS ** classes with "fade" in them to fade onmouseover ***/ sloppyClass = false; /* set to true or false; true will make the script ** work for Macs (IE 5+), but you will have to give ** a name (name="blah") to each link that you want ** to fade. ***/ macCompat = false; /** **** </config> **************/ /************* **** <install> ** Now, once you have customized your fading colors, you need to include your customized .js file on every page that you want to use it in. You can include javascript files using this syntax (in the head of a document): <script src="fade.js" language="Javascript"></script> Now that you have the file included, you need to setup your links a small bit. Each link that you want to fade needs to use the fade class. Example: <a href="blah.html" class="fade">click here</a> Also, the link must be plain text. This means that you can't have <b>'s, <i>'s, <font>'s, etc. inside of the link. Example of what not to do: <a href="blah.html" class="fade"><b>click</b> here</a> Have fun! -Anarchos- ** **** </install> **************/ hexa = new makearray(16); for(var i = 0; i < 10; i++) hexa[i] = i; hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; document.onmouseover = domouseover; document.onmouseout = domouseout; fadeColor = dehexize(fadeColor.toLowerCase()); var fadeId = new Array(); function dehexize(Color){ var colorArr = new makearray(3); for (i=1; i<7; i++){ for (j=0; j<16; j++){ if (Color.charAt(i) == hexa[j]){ if (i%2 !=0) colorArr[Math.floor((i-1)/2)]=eval(j)*16; else colorArr[Math.floor((i-1)/2)]+=eval(j); } } } return colorArr; } function domouseover() { if(document.all){ var srcElement = event.srcElement; if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) { if (!srcElement.startColor) { srcElement.startColor = (srcElement.style.color)? srcElement.style.color: srcElement.currentStyle.color; srcElement.startColor = dehexize(srcElement.startColor.toLowerCase()); } var link = (macCompat? srcElement.name: srcElement.uniqueID); if (link) fade(srcElement.startColor,fadeColor,link,stepIn); else if (macCompat) alert("Error: Mac Compatility mode enabled, but link has no name."); } } } function domouseout() { if (document.all){ var srcElement = event.srcElement; if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) { var link = (macCompat? srcElement.name: srcElement.uniqueID); if (link) fade(fadeColor,srcElement.startColor,link,stepIn); } } } function makearray(n) { this.length = n; for(var i = 1; i <= n; i++) this[i] = 0; return this; } function hex(i) { if (i < 0) return "00"; else if (i > 255) return "ff"; else return "" + hexa[Math.floor(i/16)] + hexa[i%16]; } function setColor(r, g, b, element) { var hr = hex(r); var hg = hex(g); var hb = hex(b); element.style.color = "#"+hr+hg+hb; } function fade(s,e,element,step) { var sr = s[0]; var sg = s[1]; var sb = s[2]; var er = e[0]; var eg = e[1]; var eb = e[2]; if (fadeId[0] != null && fade[0] != element && eval(fadeId[0])) { var orig = eval(fadeId[0]); setColor(orig.startColor[0],orig.startColor[1],orig.startColor[2],orig); var i = 1; while(i < fadeId.length) { clearTimeout(fadeId[i]); i++; } } for(var i = 0; i <= step; i++) { fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" + step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+ ")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step); } fadeId[0] = element; } |
From: Brian R. <hei...@us...> - 2002-04-09 03:59:04
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/images In directory usw-pr-cvs1:/tmp/cvs-serv25279/templates/TealMP/images Added Files: bottombg.gif footer_bottom.gif footer_left.gif footer_right.gif footer_top.gif grad_ld_lr.gif grad_ld_rl.gif logo.jpg navbg.gif pixel.gif Log Message: Added new theme. --- NEW FILE: bottombg.gif --- GIF89a --- NEW FILE: footer_bottom.gif --- GIF89a --- NEW FILE: footer_left.gif --- GIF89ad --- NEW FILE: footer_right.gif --- GIF89ad --- NEW FILE: footer_top.gif --- GIF89a --- NEW FILE: grad_ld_lr.gif --- GIF89a --- NEW FILE: grad_ld_rl.gif --- GIF89a --- NEW FILE: logo.jpg --- ÿØÿà --- NEW FILE: navbg.gif --- GIF89a --- NEW FILE: pixel.gif --- GIF89a |
From: Brian R. <hei...@us...> - 2002-04-09 03:58:40
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/css In directory usw-pr-cvs1:/tmp/cvs-serv25113 Added Files: tpl_style.css Log Message: Added tpl_style.css. --- NEW FILE: tpl_style.css --- BODY { background-color: #0f9ebc; font-family: Verdana,Arial,Helvetica; } .header { background-color: #E2E2E2 } .tableborder { border-style: solid; border-width: 2px } .tabletitle { border-style: solid; border-width: 2px; border-bottom-width: 0px; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border: #000000; } a { color: #116675; text-decoration: none; } a.navbar { color: #116675; text-decoration: none; } a:hover { color: #004453; text-decoration: underline; } a.navbar:hover { color: #116675; text-decoration: overline; } a:visited { color: #116675; } .tjcopyright { font-size : 10px; text-decoration: none; } |
From: Brian R. <hei...@us...> - 2002-04-09 03:54:18
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/images In directory usw-pr-cvs1:/tmp/cvs-serv24052/images Log Message: Directory /cvsroot/phpmp/phpMP/templates/TealMP/images added to the repository |
From: Brian R. <hei...@us...> - 2002-04-09 03:53:53
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/css In directory usw-pr-cvs1:/tmp/cvs-serv23919/css Log Message: Directory /cvsroot/phpmp/phpMP/templates/TealMP/css added to the repository |
From: Brian R. <hei...@us...> - 2002-04-09 03:53:39
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP/js In directory usw-pr-cvs1:/tmp/cvs-serv23864/js Log Message: Directory /cvsroot/phpmp/phpMP/templates/TealMP/js added to the repository |
From: Brian R. <hei...@us...> - 2002-04-09 03:51:27
|
Update of /cvsroot/phpmp/phpMP/templates/TealMP In directory usw-pr-cvs1:/tmp/cvs-serv23389/TealMP Log Message: Directory /cvsroot/phpmp/phpMP/templates/TealMP added to the repository |
From: Christopher C. <ch...@pa...> - 2002-04-09 00:01:54
|
On Mon, 08 Apr 2002 15:29:16 -0700 Brian Rose <hei...@us...> wrote: BR> Updated Auth() functinos Are you going Latino on us? ;) -- Christopher |
From: Brian R. <hei...@us...> - 2002-04-08 22:29:17
|
Update of /cvsroot/phpmp/phpMP/includes In directory usw-pr-cvs1:/tmp/cvs-serv22711/includes Modified Files: auth.php Log Message: Updated Auth() functinos and handlers. Index: auth.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/auth.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** auth.php 5 Apr 2002 23:15:29 -0000 1.5 --- auth.php 8 Apr 2002 22:29:14 -0000 1.6 *************** *** 39,42 **** --- 39,50 ---- var $isgod; var $priveleges; + var $cookietime; + + function KillOldSessions() { + global $MPCONF, $DBA; + $cur_time = time() - $MPCONF['SES']['session_length']; + $DBA->query('DELETE FROM ' . $MPCONF['DB']['table_prefix'] . 'sessions WHERE expiretime < ' . $cur_time); + + } function FetchUserVars($sess_user) { *************** *** 51,63 **** } function AuthUser() { ! global $MPCONF, $DBA, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SESSION_VARS; ! session_start(); ! if($HTTP_SESSION_VARS['sess_user'] != "") { ! $sess_user = $HTTP_SESSION_VARS['sess_user']; ! return $this->FetchUserVars($sess_user); } elseif($HTTP_COOKIE_VARS[$MPCONF['SES']['extcookie']]) { --- 59,108 ---- } + function getSessKey($length=24, $pool="") { + if($pool == ""){ + $pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + $pool .= "abcdefghijklmnopqrstuvwxyz"; + $pool .= "0123456789"; + } + mt_srand ((double) microtime() * 1000000); + $unique_id = ""; + for ($index = 0; $index < $length; $index++) { + $unique_id .= substr($pool, (mt_rand()%(strlen($pool))), 1); + } + return $unique_id; + } + function AuthUser() { ! global $MPCONF, $DBA, $HTTP_POST_VARS, $HTTP_COOKIE_VARS; ! $this->KillOldSessions(); ! $cookiename = $MPCONF['SES']['normcookie']; ! $this->cookietime = time(); ! if(($HTTP_POST_VARS['username'] != "") && ($HTTP_POST_VARS['password'] != "")) { ! $enc_password = md5($HTTP_POST_VARS['password']); + $result = $DBA->query('SELECT username FROM ' . $MPCONF['DB']['table_prefix'] . "users WHERE username='{$HTTP_POST_VARS['username']}' AND password='$enc_password'"); + if(@mysql_num_rows($result) == 1) { + $data = @mysql_fetch_array($result); + $sess_user = $data['username']; + $sesskey = $this->getSessKey(); + $DBA->query('INSERT INTO ' . $MPCONF['DB']['table_prefix'] . "sessions (sesskey, expiretime, username) VALUES('$sesskey', '" . $this->cookietime . "', '" . $sess_user. "')"); + + setcookie($cookiename, $sess_user, $this->cookietime, $MPCONF['GEN']['uri']); + return $this->FetchUserVars($sess_user); + + } else { + header("Location: " . $MPCONF['GEN']['uri'] . "/error.php?ecode=auth"); + } + } elseif($HTTP_COOKIE_VARS[$cookiename]) { + $sess_user = $HTTP_COOKIE_VARS[$cookiename]; + $result = $DBA->query('SELECT sesskey FROM ' . $MPCONF['DB']['table_prefix'] . 'sessions WHERE username = "' . $sess_user . '"'); + if(@mysql_num_rows($result) == 1) { + return $this->FetchUserVars($sess_user); + setcookie($cookiename, $sess_user, $this->cookietime, $MPCONF['GEN']['uri']); + } else { + return $this->FetchUserVars('Anonymous'); + } } elseif($HTTP_COOKIE_VARS[$MPCONF['SES']['extcookie']]) { *************** *** 69,74 **** if(@mysql_num_rows($result) == 1) { $sess_user = $username; ! $session_register($sess_user); return $this->FetchUserVars($sess_user); --- 114,121 ---- if(@mysql_num_rows($result) == 1) { $sess_user = $username; ! $sesskey = $this->getSessKey(); ! @mysql_query("INSERT INTO " . $MPCONF['DB']['table_prefix'] . "sessions (sesskey, expiretime, username) VALUES('$sesskey', '" . $this->cookietime . "', '$sess_user')"); + setcookie($cookiename, $sess_user, $this->cookietime, $MPCONF['GEN']['uri']); return $this->FetchUserVars($sess_user); *************** *** 76,96 **** header("Location: " . $MPCONF['GEN']['abs_path'] . "/error.php?ecode=auth"); } - - } elseif(($HTTP_POST_VARS['username'] != "") && ($HTTP_POST_VARS['password'] != "")) { - $enc_password = md5($HTTP_POST_VARS['password']); - - $result = $DBA->query('SELECT username FROM ' . $MPCONF['DB']['table_prefix'] . "users WHERE username='{$HTTP_POST_VARS['username']}' AND password='$enc_password'"); - if(@mysql_num_rows($result) == 1) { - $sess_user = $HTTP_POST_VARS['username']; - session_register($sess_user); - - return $this->FetchUserVars($sess_user); - } else { - header("Location: " . $MPCONF['GEN']['uri'] . "/error.php?ecode=auth"); - } } else { $sess_user = "Anonymous"; - session_register($sess_user); - return $this->FetchUserVars('Anonymous'); } --- 123,128 ---- *************** *** 131,214 **** } - - /****************************************************************************/ - /* Session Handler Routines */ - /* Note: This should be outside the class */ - - // This is used to change the default settings - //ini_set ('session.save_handler','user'); - - /* - function sess_open($save_path, $session_name) { - global $SESS_LIFE; - - $SESS_LIFE = get_cfg_var("session.gc_maxlifetime"); - - return true; - - } - - function sess_close() { - - return true; - - } - - function sess_read($key) { - global $SESS_LIFE, $MPCONF, $DBA; - - $qry = "SELECT value FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE sesskey = '$key' AND expiry > " . time(); - $qid = $DBA->query("$qry"); - - $result = @mysql_fetch_array($qid); - - if ($result["value"]) { - return $result["value"]; - } else { - return false; - } - } - - function sess_write($key, $val) { - global $SESS_LIFE, $MPCONF, $DBA; - - $expiry = time() + $SESS_LIFE; - $value = addslashes($val); - - $qry = "REPLACE INTO " . $MPCONF['DB']['table_prefix'] . "sessions VALUES ('$key', $expiry, '$value')"; - $qid = $DBA->query("$qry"); - - return $qid; - - } - - function sess_destroy($key) { - global $DBA, $MPCONF; - $qry = "DELETE FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE sesskey = '$key'"; - $qid = $DBA->query("$qry"); - - return $qid; - } - - function sess_gc($maxlifetime) { - global $DBA, $MPCONF; - - $qry = "DELETE FROM " . $MPCONF['DB']['table_prefix'] . "sessions WHERE expiry < " . time(); - $qid = $DBA->query("$qry"); - - return $qid; - } - - //session_set_save_handler( - 'sess_open', - 'sess_close', - 'sess_read', - 'sess_write', - 'sess_destroy', - 'sess_gc' - ); - */ - - /****************************************************************************/ ?> --- 163,166 ---- |
From: Brian R. <hei...@us...> - 2002-04-08 22:29:17
|
Update of /cvsroot/phpmp/phpMP/modules In directory usw-pr-cvs1:/tmp/cvs-serv22711/modules Modified Files: user_side.php Log Message: Updated Auth() functinos and handlers. Index: user_side.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules/user_side.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** user_side.php 5 Apr 2002 07:24:57 -0000 1.5 --- user_side.php 8 Apr 2002 22:29:14 -0000 1.6 *************** *** 7,11 **** $blockname = "Welcome"; ! $content = "Welcome back,<br> " . $MPCONF['USR']['username'] . "!"; } else { --- 7,11 ---- $blockname = "Welcome"; ! $content = "<font size='1'>Welcome back,<br> " . $MPCONF['USR']['username'] . "!</font>"; } else { |
From: Brian R. <hei...@us...> - 2002-04-08 22:29:17
|
Update of /cvsroot/phpmp/phpMP In directory usw-pr-cvs1:/tmp/cvs-serv22711 Modified Files: index.php Log Message: Updated Auth() functinos and handlers. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** index.php 5 Apr 2002 23:15:28 -0000 1.10 --- index.php 8 Apr 2002 22:29:13 -0000 1.11 *************** *** 79,83 **** $Template->PrintFooter( array() ); - $Template->ClosePage(); - ?> --- 79,81 ---- |
From: Brian R. <hei...@us...> - 2002-04-05 23:29:27
|
Update of /cvsroot/phpmp/phpMP/includes In directory usw-pr-cvs1:/tmp/cvs-serv10722/includes Modified Files: auth.php template.php Log Message: Attempt at fixing Auth() functions. Index: auth.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/auth.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** auth.php 5 Apr 2002 07:37:06 -0000 1.4 --- auth.php 5 Apr 2002 23:15:29 -0000 1.5 *************** *** 52,66 **** function AuthUser() { ! global $MPCONF, $DBA, $HTTP_POST_VARS; session_start(); ! if($MPCONF['USR']['username'] != "") { ! session_register("$sess_user"); ! return $this->FetchUserVars("$sess_user"); ! } elseif(($MPCONF['GEN']['extcookie'] != "") && ($HTTP_COOKIE_VARS[$MPCONF['SES']['extcookie']])) { ! $this->mpcookie = $HTTP_COOKIE_VARS[$MPCONF['GEN']['extcookie']]; $authstring = $this->mpcookie; --- 52,66 ---- function AuthUser() { ! global $MPCONF, $DBA, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SESSION_VARS; session_start(); ! if($HTTP_SESSION_VARS['sess_user'] != "") { ! $sess_user = $HTTP_SESSION_VARS['sess_user']; ! return $this->FetchUserVars($sess_user); ! } elseif($HTTP_COOKIE_VARS[$MPCONF['SES']['extcookie']]) { ! $this->mpcookie = $HTTP_COOKIE_VARS[$MPCONF['SES']['extcookie']]; $authstring = $this->mpcookie; *************** *** 68,75 **** if(@mysql_num_rows($result) == 1) { ! $sess_user = "$username"; ! $session_register("$sess_user"); ! return $this->FetchUserVars("$sess_user"); } else { --- 68,75 ---- if(@mysql_num_rows($result) == 1) { ! $sess_user = $username; ! $session_register($sess_user); ! return $this->FetchUserVars($sess_user); } else { *************** *** 78,100 **** } elseif(($HTTP_POST_VARS['username'] != "") && ($HTTP_POST_VARS['password'] != "")) { ! $enc_password = md5($password); $result = $DBA->query('SELECT username FROM ' . $MPCONF['DB']['table_prefix'] . "users WHERE username='{$HTTP_POST_VARS['username']}' AND password='$enc_password'"); if(@mysql_num_rows($result) == 1) { $sess_user = $HTTP_POST_VARS['username']; ! session_register("$sess_user"); ! return $this->FetchUserVars('$sess_user'); } else { ! header("Location: " . $MPCONF['GEN']['address'] . "/error.php?ecode=auth"); } } else { $sess_user = "Anonymous"; ! session_register("$sess_user"); return $this->FetchUserVars('Anonymous'); } ! if($this->isadmin == 1) { $this->AuthAdmin(); } --- 78,100 ---- } elseif(($HTTP_POST_VARS['username'] != "") && ($HTTP_POST_VARS['password'] != "")) { ! $enc_password = md5($HTTP_POST_VARS['password']); $result = $DBA->query('SELECT username FROM ' . $MPCONF['DB']['table_prefix'] . "users WHERE username='{$HTTP_POST_VARS['username']}' AND password='$enc_password'"); if(@mysql_num_rows($result) == 1) { $sess_user = $HTTP_POST_VARS['username']; ! session_register($sess_user); ! return $this->FetchUserVars($sess_user); } else { ! header("Location: " . $MPCONF['GEN']['uri'] . "/error.php?ecode=auth"); } } else { $sess_user = "Anonymous"; ! session_register($sess_user); return $this->FetchUserVars('Anonymous'); } ! if($this->UserVars['isadmin'] == 1) { $this->AuthAdmin(); } *************** *** 103,122 **** function AuthAdmin() { ! if ($this->UserInfo["isadmin"] == 1) { ! ! $this->isadmin = 1; ! ! if ($this->UserInfo["isgod"] == 1) { ! ! $this->isgod = 1; ! ! } ! ! $this->privileges = explode(",", $this->UserInfo["privileges"]); ! ! return true; ! } ! } function UpdateUser() { --- 103,123 ---- function AuthAdmin() { ! if ($this->UserVars["isadmin"] == 1) { ! ! $this->isadmin = 1; ! ! if ($this->UserVars["isgod"] == 1) { ! ! $this->isgod = 1; ! ! } ! ! $this->privileges = explode(",", $this->UserVars["privileges"]); ! ! return true; ! ! } ! } function UpdateUser() { *************** *** 135,142 **** /* Note: This should be outside the class */ - // This is used to change the default settings ! ini_set ('session.save_handler','user'); function sess_open($save_path, $session_name) { global $SESS_LIFE; --- 136,143 ---- /* Note: This should be outside the class */ // This is used to change the default settings ! //ini_set ('session.save_handler','user'); + /* function sess_open($save_path, $session_name) { global $SESS_LIFE; *************** *** 200,204 **** } ! session_set_save_handler( 'sess_open', 'sess_close', --- 201,205 ---- } ! //session_set_save_handler( 'sess_open', 'sess_close', *************** *** 208,211 **** --- 209,213 ---- 'sess_gc' ); + */ /****************************************************************************/ Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** template.php 3 Apr 2002 10:55:24 -0000 1.7 --- template.php 5 Apr 2002 23:15:29 -0000 1.8 *************** *** 186,189 **** --- 186,195 ---- } + function ClosePage() { + global $MPCONF; + + session_close(); + } + } |
From: Brian R. <hei...@us...> - 2002-04-05 23:29:27
|
Update of /cvsroot/phpmp/phpMP In directory usw-pr-cvs1:/tmp/cvs-serv10722 Modified Files: index.php Log Message: Attempt at fixing Auth() functions. Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** index.php 4 Apr 2002 01:13:29 -0000 1.9 --- index.php 5 Apr 2002 23:15:28 -0000 1.10 *************** *** 49,53 **** // Start The Page ! $Template->PrintHeader( array(PAGETITLE => ".::phpMP Home Page::.") ); // Display The Left Side --- 49,53 ---- // Start The Page ! $Template->PrintHeader( array(PAGETITLE => ".::phpMP Sample Page::.") ); // Display The Left Side *************** *** 78,81 **** --- 78,83 ---- $Template->PrintFooter( array() ); + + $Template->ClosePage(); ?> |