paristemi
[ class tree: paristemi ] [ index: paristemi ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3. * <b>Index : Mailing List Section</b><br />
  4. * Main jumping point for the mailing list section. Options:
  5. * - Subscribe to mailing list(s)
  6. * - Unsubscribe from mailing list(s)
  7. * - Administer mailing list
  8. * @author Kristen O'Brien <kristen_paristemi-com>
  9. * @copyright Copyright 2004, Kristen O'Brien
  10. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11. * @link http://www.paristemi.com Paristemi Main Site
  12. * @package paristemi
  13. * @subpackage paristemi_business_logic
  14. * @since Build 0.5
  15. * @version Build 0.7
  16. * @filesource
  17. */
  18. /**
  19. * Include the constants file and all of the files in the include list
  20. */
  21. if(ltrim(dirname($_SERVER['SCRIPT_FILENAME'])) == "" || !file_exists($_SERVER['DOCUMENT_ROOT']."/constants.php")) {
  22. if(!file_exists("../constants.php")) { require_once("../public_html/constants.php"); }
  23. else { require_once("../constants.php"); }
  24. }
  25. else { require_once($_SERVER['DOCUMENT_ROOT']."/constants.php"); }
  26. foreach($INCLUDE_LIST as $includefile) { require_once $includefile; }
  27. require_once $HTTP_DOCUMENT_ROOT.$INCLUDE_PATH.$HEADER.
  28. "?pagetitle=".str_replace(" ","%20",htmlentities($S_MAILING_LISTS)).
  29. "&pagesubtitle=".str_replace(" ","%20",htmlentities($S_MAIN)).
  30. "&pagedesc=".str_replace(" ","%20",htmlentities($CHURCH_NAME." ".$S_DESC_MAILING_LISTS));
  31.  
  32. $db = new Database();
  33. $db_ml = $db->GetClass('mailinglist');
  34. $smarty = UtilSmarty::createSmarty();
  35. $sidesection['Title'] = $S_MAILING_LISTS;
  36. $sidesection['Links'] = array(array(
  37. 'LinkPath'=>$HTTP_DOCUMENT_ROOT.$MAILING_LIST_DIR.$ML_SUBSCRIBE_FILE."?type=Subscribe",
  38. 'LinkText'=>$S_SUBSCRIBE), array(
  39. 'LinkPath'=>$HTTP_DOCUMENT_ROOT.$MAILING_LIST_DIR.$ML_SUBSCRIBE_FILE."?type=Unsubscribe",
  40. 'LinkText'=>$S_UNSUBSCRIBE), array(
  41. 'LinkPath'=>$HTTP_DOCUMENT_ROOT.$MAILING_LIST_DIR. $ML_ADMIN_FILE,
  42. 'LinkText'=>$S_ADMIN." ".$S_LOGIN));
  43. $smarty->assign('sidesections',array($sidesection));
  44. $smarty->assign('introstatements',array(array('Title'=>$S_MAILING_LISTS,
  45. 'Text'=>$MAILING_LIST_INTRO)));
  46. UtilSmarty::displaySectionPage($smarty);
  47. ?>
  48. <?php require_once $SERVER_DIRECTORY.$INCLUDE_PATH.$FOOTER; ?>

Documentation generated on Mon, 10 May 2004 12:09:57 -0700 by phpDocumentor 1.3.0RC3