home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / php.exe / Cal-ender.php < prev    next >
Encoding:
PHP Script  |  2001-07-02  |  3.0 KB  |  99 lines

  1. //**************************************
  2.     //     
  3.     // Name: Cal-ender
  4.     // Description:A calendar that doesn't n
  5.     //     eed any editing. If you want the better 
  6.     //     version (which is free) go to http://ddk
  7.     //     resource.cjb.com.
  8.     // By: Driss Kaitouni
  9.     //
  10.     //This code is copyrighted and has    // limited warranties.Please see http://
  11.     //     www.Planet-Source-Code.com/xq/ASP/txtCod
  12.     //     eId.353/lngWId.8/qx/vb/scripts/ShowCode.
  13.     //     htm    //for details.    //**************************************
  14.     //     
  15.     
  16.     <?php
  17.     $DBHost="your.host.name";
  18.     $DBUser="db_username";
  19.     $DBPass="db_password";
  20.     function DBInfo() {
  21.     global $DBHost,$DBUser,$DBPass;
  22.     }
  23.     $Approval_Email="email@your.domain";
  24.     $Web_Host="http://your.domain.com";
  25.     function Approver() {
  26.     global $Approval_Email,$Web_Host;
  27.     }
  28.     function commonHeader($title) {
  29.     ?>
  30.     <HTML>
  31.     <HEAD>
  32.     <TITLE>Rosenet Community Calendar - <? echo $title;?></TITLE>
  33.     </HEAD>
  34.     <BODY BGCOLOR="#ffffff">
  35.     <!-- start body -->
  36.     <?
  37.     }
  38.     function commonFooter() {
  39.     ?>
  40.     <!-- End Body -->
  41.     <CENTER>
  42.     <br><hr width='70%'><br><font face='Arial'>
  43.     | <a href="index.phtml">View Calendar</a> |
  44.     <a href="newData.phtml">Add An Event</a> |
  45.     <br>
  46.     </font>
  47.     </CENTER>
  48.     </BODY>
  49.     </HTML>
  50.     <?
  51.     }
  52.     function adminFooter() {
  53.     ?>
  54.     <!-- End Body -->
  55.     <CENTER>
  56.     <br><hr width='70%'><br><font face='Arial'>
  57.     | <a href="/calendar/index.phtml">View Calendar</a> |
  58.     <a href="./admin.phtml">Admin Page</a> |
  59.     <br>
  60.     </font>
  61.     </CENTER>
  62.     </BODY>
  63.     </HTML>
  64.     <?
  65.     }
  66.     function eventFooter($Old,$back) {
  67.     echo "<br>";
  68.     if ($Old==1) {
  69.     echo "<center><font face=\"Arial\"><a href=\"$back\">Return To The Calendar</a></center>";
  70.     } else {
  71.     echo "<CENTER><FORM><INPUT TYPE=\"button\" VALUE=\"Close This Window\" onClick=\"window.close()\"></FORM><br>";
  72.     }
  73.     echo "<font face=\"Arial\"><a href=\"newData.phtml\">Add An Event</a></center>";
  74.     echo "</font></body></html>";
  75.     }
  76.     function eventAdminFooter() {
  77.     echo "<br>";
  78.     echo "<CENTER><FORM><INPUT TYPE=\"button\" VALUE=\"Close This Window\" onClick=\"window.close()\"></FORM><br>";
  79.     echo "<font face=\"Arial\"><a href=\"addCalendar.phtml\">Add An Event</a></center>";
  80.     echo "</font></body></html>";
  81.     }
  82.     /*
  83.     This script was created by Christopher Ostmo of Rosenet, Inc. 1998.
  84.     Significant contributions were offered by Joe McNulty of Condor
  85.     Consulting, Inc and Brad Marsh.
  86.     If you have questions or feature requests, e-mail me at:
  87.     costmo@rosenet.net
  88.     Feel free to use and modify these scripts, but please keep this notice
  89.     attached.
  90.     http://www.rosenet.net/
  91.     http://modems.rosenet.net/
  92.     The latest version of these scripts and other PHP/MySQL utilities can be
  93.     found at:
  94.     http://modems.rosenet.net/mysql/
  95.     Copyright, 1998-1999 Rosenet Inc.
  96.     */
  97.     ?>
  98.  
  99.