Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

base-main.inc.php

Go to the documentation of this file.
00001 <?
00010 abstract class BaseMain extends MyModule
00011 {
00031     function getPagesXml()
00032     {
00033         $xml = parent::getPagesXml();
00034 
00035         $xml .= <<<XML
00036             <page name="about" type="content" desc="the about page"/>
00037             <page name="contact" type="content" desc="the contact page"/>
00038             <page name="tos" type="content" desc="the terms of service page"/>
00039             <page name="privacy" type="content" desc="the privacy policy page"/>
00040             <page name="spam" type="content" desc="the spam policy page"/>
00041             <page name="copyright" type="content" desc="the copyright policy page"/>
00042             <page name="phpinfo" type="content" desc="php information"/>
00043             <page name="error" type="content" desc="php information" title="Report Error"/>
00044             <page name="recache" type="content" desc="php information" title="Recache A Page">
00045                 <param name="do" required="1" desc="page to recache in base64_encode format"/>
00046             </page>
00047             <page name="bbcode" type="content" desc="shows you how to use the bbcode!" title="BBCode Examples / Usage"/>
00048             <page name="sitesql" desc="gives you the sql to replicate/create the sites database structure"/>
00049             <page name="sitexml" desc="gives you the xml that describes the site!"/>
00050             <page name="sitemap" desc="a list of modules that link to each modules parameters page" title="Site Map" cache="true"/>
00051 XML;
00052 
00053         return $xml;
00054     }
00055     
00059     function initMainPage()
00060     {
00061         $this->pageTitle = 'Welcome to ' . Config::get('site_name');
00062     }
00063     
00067     function initAboutPage()
00068     {
00069         $this->pageTitle = 'About ' . Config::get('site_name');
00070 
00071         $this->doCachePage = true;
00072     }
00073         
00077     function initContactPage()
00078     {
00079         $this->pageTitle = 'Contact Us';
00080     }
00081 
00085     function initTosPage()
00086     {
00087         $this->pageTitle = 'Terms Of Service';
00088 
00089         $this->doCachePage = true;
00090     }
00091     
00095     function initPrivacyPage()
00096     {
00097         $this->pageTitle = 'Privacy Policy';
00098 
00099         $this->doCachePage = true;
00100     }
00101 
00105     function initSpamPage()
00106     {
00107         $this->pageTitle = 'Anti-Spam Policy';
00108 
00109         $this->doCachePage = true;
00110     }
00111     
00115     function initCopyrightPage()
00116     {
00117         $this->pageTitle = 'Copyright Policy';
00118 
00119         $this->doCachePage = true;
00120     }
00121     
00125     function drawAboutPage()
00126     {
00127         echo "<p>You should define " . get_class($this) . "::drawAboutPage()</p>";
00128     }
00129 
00133     function drawContactPage()
00134     {
00135         $form = $this->createContactForm();
00136         
00137         if ($form->isSubmitted())
00138         {
00139             $form->validate();
00140 
00141             if (!$form->hasError())
00142             {
00143                 //create our email.
00144                 $subject = "[" . Config::get('site_name') . "] - Contact Form";
00145                 $body .= "Recently, " . $form->getData('email') . " filled out the contact form on " . Config::get('site_name') . ". ";
00146                 $body .= "Here's what they said:\n\n";
00147                 $body .= "Subject: " . $form->getData('subject') . "\n\n";
00148                 $body .= $form->getData('message') . "\n\n";
00149                 $body .= "Thanks,\nThe Happy " . Config::get('site_name') . " Contact Mailer";
00150                 
00151                 //get our mailer and mail it!
00152                 Mail::send(Config::get('site_admin'), $subject, $body, null, $form->getData('email')); 
00153 
00154                 echo "<p>Thank you for contacting us.  We have been
00155                 notified and will respond to your inquiry ASAP.</p>\n";
00156             }
00157         }
00158 
00159         if ($form->needsDrawn())
00160             $form->drawAll();
00161     }
00162 
00168     function createContactForm()
00169     {
00170         $form = new Form();
00171         $form->action = $this->getUrl(".contact");
00172         
00173         $form = $this->contactFormAddFields($form);
00174         
00175         return $form;
00176     }
00177 
00185     function contactFormAddFields($form)
00186     {
00187         $form->add('EmailField', 'email', array(
00188             'required' => true,
00189             'width' => '75%'
00190         ));
00191         $form->add('TextField', 'subject', array(
00192             'required' => true,
00193             'width' => '75%'
00194         ));
00195         $form->add('TextAreaField', 'message', array(
00196             'required' => true,
00197             'width' => '75%',
00198             'height' => '150px'
00199         ));
00200         $form->addSubmit('Contact Us');
00201 
00202         return $form;
00203     }
00204 
00211     function drawTosPage()
00212     {
00213 ?>
00214 <h2>Introduction</h2>
00215 <p>
00216 <?=Config::get('site_name')?> (the "Website") is a online website.  You are
00217 responsible for reviewing these Terms of Service ("TOS") and your access to
00218 and use of the Website signifies that you have read, understood, agree and
00219 consent to be held to the TOS and to abide by them.  We reserve the right
00220 in our sole discretion to change, modify or alter the TOS at any time and
00221 without notice.  Your continued access to and use of the Website indicates
00222 your consent to any changed, modified or altered TOS.  It is your
00223 responsibility as a user to regularly review the TOS.  If you do not agree
00224 to the TOS, do not use or access the Website.  We reserve the right to
00225 refuse service or terminate any account or membership for any reason at any
00226 time.
00227 </p>
00228 
00229 <h2>Privacy</h2>
00230 <p>
00231 Your use and access to the Website indicates you consent to, and that you
00232 have read and understood our <?=$this->getLink(array('page' => 'privacy'), 'Privacy Policy');?>
00233 which is incorporated herein by this reference.
00234 </p>
00235 
00236 <h2><?=Config::get('site_name')?> Usage</h2>
00237 <p>
00238 Your use and continued access is subject to your compliance with our "Code
00239 of Conduct," that you are over the age of <?=Config::get('minimum_age');?>, and
00240 that your activities and use on our Website are in compliance with federal,
00241 state and local laws and regulations. Your violation of the Code of Conduct
00242 permits us to terminate and cancel, or prevent access to, our Website
00243 without notice to you.
00244 </p>
00245 
00246 <h2>MINORS/INTERNATIONAL ACCESS</h2>
00247 <?
00248 $this->drawTosAge();
00249 ?>
00250 
00251 <h2>Code of Conduct</h2>
00252 <p>
00253 Your use and access of the Website is subject to you abiding by this Code of Conduct:
00254 
00255 <ul>
00256     <li>Use of the Website for lawful purposes only;</li>
00257     <li>We do not permit harmful, defamatory, threatening or harassing
00258     language, pornography, hate speech, racial or sexual epithets, and
00259     vulgar or obscene language;</li>
00260     <li>No Misrepresentation of yourself or another individual is not allowed;</li>
00261     <li>Uploading unauthorized advertising, junk mail, <?=$this->getLink(array('page' => 'spam'), 'spam');?>,
00262     pyramid schemes, or any other type of soliciting is not allowed;</li>
00263     <li>Uploading or distributing viruses, Trojan horses, malicious code, worms, time bombs, or backdoor code; or</li>
00264     <li>Violates the intellectual property rights of others.</li>
00265 </ul>
00266 </p>
00267 
00268 <h2>Changes to <?=Config::get('site_name')?></h2>
00269 <p>
00270 We reserve the right to discontinue or change any service or feature on the Website at anytime and without notice.
00271 </p>
00272 
00273 <h2>Disclaimer</h2>
00274 <p>
00275 We are not responsible for any information including the security of that
00276 information posted on the Website. We are also not responsible any false or
00277 misleading information.  It is your responsibility to control access to
00278 information that you might find unsuitable. This includes controlling
00279 access by minors through your account.  We shall not and have no obligation
00280 to, although we reserve the right to, to pre-screen content and we are not
00281 liable for content provided by others.  You expressly agree that for any
00282 reason we can edit, delete or modify any content or postings available on
00283 or through the Website, however, <?=Config::get('site_owner')?> shall have no liability for any
00284 action or inaction with respect to removing or editing such material.  You
00285 acknowledge and agree that your use the Website is at your sole and entire
00286 own risk.
00287 </p>
00288 
00289 <h2>Limitation of Liability </h2>
00290 <p>
00291 In no event will <?=Config::get('site_owner')?> be liable for any direct, indirect, incidental,
00292 consequential, special or punitive damages, including, but not limited to,
00293 damages for loss of profits, business interruption, loss of programs or
00294 information, even if we have been advised of the possibility of such
00295 damages, arising out of your access, use or inability to use the Website,
00296 any services, any information, transactions provided on or through the
00297 Website, downloads from the Website, or any delay of such information,
00298 service or access.  Further <?=Config::get('site_owner')?> shall not be liable for any claim
00299 attributable to errors, omissions, or other inaccuracies in the service
00300 and/or materials or information downloaded through the Website.  Because
00301 some states do not allow the exclusion or limitation of liability for
00302 consequential or incidental damages, the above limitation may not apply to
00303 you.  In such states, <?=Config::get('site_owner')?> liability is limited to the greatest extent
00304 permitted by law.
00305 </p>
00306 
00307 <p>
00308 <?=Config::get('site_owner')?> makes no representations whatsoever about any other web site
00309 which you may access through this one or which may link to this site.  When
00310 you access a non-<?=Config::get('site_name')?> web site, please understand that it is independent
00311 from <?=Config::get('site_owner')?> and that <?=Config::get('site_owner')?> has no control over the content on that
00312 web site.  In addition, a link to or from the Website does not mean that
00313 <?=Config::get('site_owner')?> has control over, or endorses the content of, the third party web
00314 site. 
00315 </p>
00316 
00317 <h2>INDEMNITY</h2>
00318 <p>
00319 You agree to indemnify, defend and hold <?=Config::get('site_owner')?> and its affiliates,
00320 officers, directors, employees and agents harmless from and against any and
00321 all claims, demands, actions, costs, liabilities, losses and damages of any
00322 kind, including reasonable attorneys' fees, arising out of or resulting
00323 from (i) your use of the Website, (ii) your use of products, services, or
00324 information provided on or through the Website, or (iii) your breach of any
00325 provision of the TOS.  <?=Config::get('site_owner')?> reserves the right, to assume the
00326 exclusive defense and control of any matter otherwise subject to
00327 indemnification by you, in which event you will cooperate with us asserting
00328 any available defenses. 
00329 </p>
00330 
00331 <h2>Copyright</h2>
00332 <p>
00333 The Website protected under copyright and owned entirely by <?=Config::get('site_owner')?>,
00334 except for user posts. &copy; <?=Config::get('site_owner')?> 2006.   All copyright, licenses,
00335 and idea submissions are covered in our <?=$this->getLink(array('page' => 'copyright'), 'copyright policy');?>
00336 which is incorporated herein by this reference.
00337 </p>
00338 
00339 <h2>GOVERNING LAW</h2>
00340 <p>
00341 The laws of the state of Iowa, exclusive of its conflict of laws
00342 provisions, shall govern your access and use of the Website and the
00343 enforcement of the TOS.  You hereby agree any claim against <?=Config::get('site_owner')?> will
00344 be resolved by the state or federal court having jurisdiction in
00345 <?=Config::get('site_jurisdiction');?>.  Further, you also agree and submit to the exercise
00346 of personal jurisdiction and venue of such courts for the purpose of
00347 litigating any such claim or action.
00348 </p>
00349 
00350 <h2>SEVERABILITY AND WAIVER.</h2>
00351 <p>
00352 If any provision of the TOS is determined to be void, invalid or
00353 unenforceable, the remainder shall be unaffected and shall be enforceable
00354 as if the void, invalid or unenforceable part was not a provision of the
00355 TOS.  The waiver by <?=Config::get('site_owner')?> of a breach of any provision of the TOS
00356 shall not operate or be construed as a waiver of any subsequent breach.
00357 </p>
00358 
00359 <h2>Last-updated: 2005-06-29</h2>
00360 <?
00361     }
00362 
00366     function drawTosAge()
00367     {
00368 ?>
00369 <p>
00370 <?=Config::get('site_owner')?> does not knowingly collect any information from children
00371 under <?=Config::get('minimum_age');?> years of age through the Website.  If you are under
00372 <?=Config::get('minimum_age');?> years of age, you are not permitted to access the Website
00373 or submit information on to the Website.  Minors between the ages of
00374 <?=Config::get('minimum_age');?>-18 are strongly encouraged to notify their parents before
00375 using the Website.  If you choose to access the Website from international
00376 locations, you are solely responsible for compliance the local laws of that
00377 region.  
00378 </p>
00379 
00380 <?
00381     }
00382 
00389     function drawPrivacyPage()
00390     {
00391 ?>
00392 <p>
00393 We reserve the right to change these terms at any time and without notice
00394 to you.  Your continued usage of the Website indicates your consent to any
00395 amendment or change to the privacy terms.  It is your sole responsibility
00396 as a user to regularly review these terms. 
00397 </p>
00398 
00399 <p>
00400 We collect and analyze aggregate information of visitors, including the
00401 domain name, visited pages, referring URLs, and other publicly available
00402 information. We use this information to help improve the Website and
00403 services, and to customize the content of our pages for each individual
00404 customer.  IP addresses are gathered for statistical purposes only and are
00405 in a non-identifiable to the user.  These IP addresses are purged weekly.
00406 Further we collect all personal information you voluntarily provide us
00407 through registration or postings.
00408 </p>
00409 
00410 <p>
00411 We do not sell or make commercially available specific information about
00412 users or their collected data, except in cooperation with law enforcement
00413 bodies in regards to content violations or violations of applicable laws.
00414 We maintain a database of member information which is used for the
00415 functioning of the Website as well as internal purposes such as technical
00416 support, notifying members of changes or enhancements to the service and
00417 new services and products that may be of interest to them. We do make
00418 aggregate user information available to advertisers.  <?=Config::get('site_name')?> may share
00419 personally identifiable information with business partners, including any
00420 business entity with which we might merge with or be acquired by, or with
00421 whom we have a business relationship. However, any use by the business
00422 partner shall be subject the same terms and conditions of this policy.
00423 </p>
00424 
00425 <p>
00426 We will never share, sell, or rent any email addresses entered into the system. 
00427 </p>
00428 
00429 <p>
00430 We are strongly committed to protecting all data. Only your family and
00431 friends as designated are allowed to view the information you enter.  We do
00432 allow people to view basic information on you in order to build family
00433 connections, however you can opt-out of this and only allow extended family
00434 to view your profile.
00435 </p>
00436 <h2>Last-updated: 2006-05-12</h2>
00437 <?
00438     }
00439 
00446     function drawSpamPage()
00447     {
00448 ?>
00449 <p>
00450 This Anti-Spam Policy Notice governs the use of the Website at and its
00451 associated services, web pages, domains and sub-domains, which are owned
00452 and operated by <?=Config::get('site_owner')?>. 
00453 </p>
00454 
00455 <p>
00456 This sets forth our policy with regard to the use of "Spam" marketing
00457 techniques in connection with Internet Marketing. In the event that we deem
00458 you to be in violation of these policies, we shall immediately revoke your
00459 rights and close any active account.
00460 </p>
00461 
00462 <p>
00463 We have a strict policy against spamming. We forbid the sending of
00464 unsolicited mass Emails or unsolicited Emails of any kind in connection
00465 with the marketing of programs, products and services.  
00466 </p>
00467 
00468 <p>
00469 We reserve the right to terminate your account and participation in our
00470 programs if we deem you to be in violation of our anti-spamming policies.
00471 We also reserve the right to suspend your account and participation pending
00472 review upon receipt of any complaint or other evidence that you may be
00473 engaging in any spamming activity. 
00474 </p>
00475 
00476 <p>
00477 We consider spamming to be any activity whereby you directly or indirectly
00478 transmit email messages to any email address that has not solicited such
00479 email and does not consent to such transmission. We also consider spamming
00480 to constitute posting advertisements in newsgroups in violation of the
00481 terms of participation in such newsgroup, that are off topic, or in
00482 newsgroups that do not specifically permit advertisements. We also consider
00483 it spamming when advertisements are placed on message boards or in chat
00484 rooms when they are not permitted by the terms of participation in such
00485 message boards and chat rooms.
00486 </p>
00487 
00488 <p>
00489 If you are "spammed" by anyone regarding our products, services, Website,
00490 or any other matters, please report this activity to <?=Config::get('site_owner')?>.
00491 </p>
00492 <h2>Last-updated: 2005-04-11</h2>
00493 <?
00494     }
00495 
00501     function drawCopyrightPage()
00502     {
00503 ?>
00504 <p>
00505 The entire contents of the Website are protected by international copyright
00506 and trademark laws. The owner of the copyrights and trademarks are
00507 <?=Config::get('site_owner')?>, its affiliates or other third party licensors. YOU MAY NOT
00508 MODIFY, COPY, REPRODUCE, REPUBLISH, UPLOAD, POST, TRANSMIT, OR DISTRIBUTE,
00509 IN ANY MANNER, THE MATERIAL ON THE WEBSITE, INCLUDING TEXT, GRAPHICS, CODE
00510 AND/OR SOFTWARE. You may print and download portions of material from the
00511 different areas of the Website solely for your own non-commercial use
00512 provided that you agree not to change or delete any copyright or
00513 proprietary notices from the materials. You agree to grant to
00514 <?=Config::get('site_owner')?> a non-exclusive, royalty-free, worldwide, perpetual
00515 license, with the right to sub-license, to reproduce, distribute, transmit,
00516 create derivative works of, publicly display and publicly perform any
00517 materials and other information (including, without limitation, ideas
00518 contained therein for new or improved products and services) you submit to
00519 any public areas of the Website (such as bulletin boards, forums and
00520 newsgroups) or by e-mail to <?=Config::get('site_owner')?> by all means and in any media
00521 now known or hereafter developed.  You also grant <?=Config::get('site_owner')?> the right
00522 to use your name in connection with the submitted materials and other
00523 information as well as in connection with all advertising, marketing and
00524 promotional material related thereto. You agree that you shall have no
00525 recourse against <?=Config::get('site_owner')?> for any alleged or actual infringement or
00526 misappropriation of any proprietary right in your communications to
00527 <?=Config::get('site_owner')?>.
00528 </p>
00529 
00530 <h2>Claims for Copyright infringement</h2>
00531 <p>
00532 Pursuant to the requirements of the Digital Millennium Copyright Act, if
00533 you feel that your copyright rights are being violated by a user, please
00534 provide the following information for our investigation.  Please provide
00535 the following information:
00536 
00537 <ol>
00538     <li>An electronic or physical signature of the owner of the copyrighted
00539     work or the person authorized to act on the owner's behalf.</li>
00540     <li>A description of the copyrighted work that is alleged to infringed
00541     and a description of the infringing activity.</li>
00542     <li>Identification of the location where the original or an authorized
00543     copy of the copyrighted work exists. </li>
00544     <li>Identification of the URL or other specific location on the <?=Config::get('site_name')?> 
00545     website where the alleged infringing work is located (you must include
00546     sufficient information for us to locate the material).</li>
00547     <li>Your contact information, including street address, telephone number, and email address.<li>
00548     <li>A statement by you that you have a good faith belief that allegedly
00549     infringing work is not authorized by the copyright owner, its agent, or
00550     the law.</li>
00551     <li>A statement by you, made under penalty of perjury, that the above
00552     information is true and correct and that you are the copyright owner or
00553     an authorized agent acting on behalf or the copyright owner.</li>
00554 </ol>
00555 </p>
00556 
00557 <p>
00558 <?=Config::get('site_owner')?> agent for notice of claims of copyright infringement is: <?=Linkify::email(Config::get('copyright_agent'));?>
00559 </p>
00560 <h2>Last-updated: 2005-05-12</h2>
00561 <?
00562     }
00563 
00567     function initPhpInfoPage()
00568     {
00569         $this->setTemplate(new BlankTemplate());
00570     }
00571 
00577     function drawPhpInfoPage()
00578     {
00579         phpinfo();
00580     }
00581     
00588     public function createErrorForm($backtrace = '')
00589     {
00590         global $me;
00591         
00592         $form = new Form();
00593         $form->action = $this->getUrl(".error");
00594 
00595         $form->add("LabelField", "oops", array(
00596             'title' => 'Oops!',
00597             'text' => 'There was an error with this page.  Please give us some information about it and we will fix this ASAP.'
00598         ));
00599         $form->add("TextAreaField", "error_report", array(
00600             'width' => '100%',
00601             'height' => '100px'
00602         ));
00603 
00604         //add our hidden form properties.
00605         $form->add("HiddenField", "backtrace", array(
00606             'value' => $backtrace
00607         ));
00608 
00609         $form->add("HiddenField", "error_page", array(
00610             'value' => $_SERVER['REQUEST_URI']
00611         ));
00612         
00613         $form->addSubmit('Send Error Report');
00614 
00615         return $form;
00616     }
00617 
00621     public function initErrorPage()
00622     {
00623         $form = $this->createErrorForm();
00624         if (!$form->isSubmitted())
00625             throw new PageError("You cannot navigate to this page.  It is for reporting errors.");
00626     }
00627 
00633     public function drawErrorPage()
00634     {
00635         global $me;
00636 
00637         $form = $this->createErrorForm();
00638         
00639         if ($form->isSubmitted())
00640         {
00641             $form->validate();
00642 
00643             if (!$form->hasError())
00644             {
00645                 $error = $form->getData('error_report') . "<br>";
00646                 $backtrace = base64_decode($form->getData('backtrace')) . "<br>";
00647                 $page = $form->getData('error_page') . "<br>";
00648                 
00649                 $subject = "[Error] " . Config::get('site_name') . ' Error Report';
00650                 
00651                 $body = "Dear Admin\n\n";
00652                 $body .= "Recently, " . $me->getName() . "(id# $me->id) had a problem on the $page page.\n\n";
00653                 
00654                 if ($error)
00655                     $body .= "Here is what they said:\n\n$error\n";
00656 
00657                 $body .= "Here is the backtrace:\n\n$backtrace\n";
00658                 $body .= "Thank you,\nThe (un)Happy " . Config::get('site_name') . " Error Robot";
00659 
00660                 //mail it off.
00661                 Mail::send(Config::get('site_admin'), $subject, $body);
00662 
00663                 echo "<p>We have notified an admin about your problem.</p>
00664                 <p>Thank you for taking the time to send this error report.  We
00665                 will try to fix it as soon as possible.</p>";
00666             }
00667         }
00668     }
00669 
00673     public function initRecachePage()
00674     {
00675         //get our url
00676         $url = base64_decode($this->params('do'));
00677 
00678         //delete it.
00679         self::deleteCachedPage($url);
00680 
00681         //send us back home
00682         Util::redirect($url);
00683     }
00684 
00688     public function initBBCodePage()
00689     {
00690         $this->doCachePage = true;
00691     }
00692 
00696     public function drawBBCodePage()
00697     {
00698         echo '<table class="struct">';
00699 
00700     
00701         //get all our bbcode.
00702         $rs = dbQuery("
00703             SELECT *
00704             FROM bbcode
00705             ORDER BY name
00706         ");
00707 
00708         //show it.
00709         while ($ar = dbFetchAssoc($rs))
00710         {
00711             echo "<tr><th>$ar[name]</th></tr>";
00712             echo "<tr><td>Code:<br>" . nl2br(htmlentities($ar['example'])) . "</td>";
00713             echo "<td>Result:<br/>" . Linkify::process($ar['example']) . "</td></tr>";
00714         }
00715 
00716         echo '</table>';
00717     }
00718 
00722     public function initSiteSQLPage()
00723     {
00724         $this->pageTitle = Config::get('site_name') . " SQL Structure";
00725     }
00726 
00730     public function drawSiteSQLPage()
00731     {
00732         $site = Site::getSite();
00733 ?>
00734     <h3>Hit Tracking</h3>
00735     <p>
00736         <textarea onfocus="this.select()" rows="8" style="width: 75%;"><?=$site->getCreateHitTrackingTable();?></textarea>
00737     </p>
00738 <?
00739         //get our modules xml data.
00740         $modules = $site->getModulesArray();
00741         foreach ($modules AS $module)
00742         {
00743             $obj = new $module;
00744             $sql = $obj->getCreateTableSql();
00745 
00746             //show the module sql.
00747             if ($sql)
00748             {
00749                 echo "\t<h3>$module SQL</h3>\n";
00750                 echo "\t<p>\n\t\t<textarea onfocus=\"this.select()\" rows=\"8\" style=\"width: 75%;\">$sql</textarea>\n\t</p>\n";
00751             }
00752         }
00753     }
00754 
00758     public function initSiteXMLPage()
00759     {
00760         $this->pageTitle = get_class($this) . " Module - XML Structure";
00761     
00762         $this->setTemplate(new XMLTemplate());
00763     }
00764 
00768     public function drawSiteXMLPage()
00769     {
00770         $site = Site::getSite();
00771         echo $site->getModulesXml();
00772     }
00773     
00777     public function drawSiteMapPage()
00778     {
00779         $site = Site::getSite();
00780 
00781         //loop thru each module, instantiate and then show its info...
00782         $modules = $site->getModulesArray();
00783         foreach ($modules AS $module)
00784         {
00785             $obj = new $module();
00786             echo "<h2>" . $obj->getLink(".parameters", $obj->_Name) . "</h2>";
00787             if ($obj->_Description)
00788                 echo "<p>$obj->_Descriptions</p>";
00789         }
00790     }
00791 }
00792 ?>

Generated on Fri Oct 27 12:26:40 2006 for BaseJumper by doxygen 1.3.9.1