From: Victor B. <vb...@us...> - 2007-03-12 08:05:15
|
Update of /cvsroot/mantisbt/web In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22834 Modified Files: .cvsignore changelog.php directory.php download.php fav.ico index.php side_menu.php sponsors.php tla.php top.php Added Files: contact_us.php directory_entry_moderate.php directory_entry_submit.php directory_entry_verify.php systemi.php utils_inc.php Log Message: Misc. website updates. Index: tla.php =================================================================== RCS file: /cvsroot/mantisbt/web/tla.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tla.php 14 Dec 2006 09:06:45 -0000 1.1 +++ tla.php 12 Mar 2007 08:04:31 -0000 1.2 @@ -24,8 +24,22 @@ $arr_xml = tla_decodeXML($xml); + #*** Mantis Stuff *** + if ( !is_array($arr_xml) ) { + $arr_xml = array(); + } + #******* + if ( is_array($arr_xml) ) { echo "\n<ul style=\"margin: 0; overflow: hidden; border: 1px solid #FFFFFF; border-spacing: 0px; background-color: #FFFFFF; padding: 0; width: 100%; list-style: none;\">\n"; + + #*** Mantis Stuff *** + $arr_xml['BeforeText'][] = ''; + $arr_xml['AfterText'][] = ''; + $arr_xml['URL'][] = 'http://www.webdesignnewyork.ws'; + $arr_xml['Text'][] = 'Web Design New York'; + #******* + for ($i = 0; $i < count($arr_xml['URL']); $i++) { echo "<li style=\"width: 100%; clear: none; margin: 0; float: left; display: inline; padding: 0;\"><span style=\"display: block; font-size: 12px; margin: 0; padding: 3px; width: 100%; color: #000000;\">".$arr_xml['BeforeText'][$i]." <a style=\"color: #000000; font-size: 12px;\" href=\"".$arr_xml['URL'][$i]."\">".$arr_xml['Text'][$i]."</a> ".$arr_xml['AfterText'][$i]."</span></li>\n"; } --- NEW FILE: systemi.php --- <?php $t_sub_title = "System i"; include( "top.php" ); ?> <span class="page_title">System i</span> <hr size="1" noshade="noshade" width="100%" /> <p>This page links to different parts of the site that are focused on Mantis deployment on the System i platform.</p> <ul> <li><a href="http://www.mantisbt.org/wiki/doku.php/mantisbt:systemi">Installation Guide for Mantis on System i</a>.</li> <li><a href="http://www.mantisbt.org/forums/viewforum.php?f=7">Forum for Mantis System i related discussions</a>.</li> </ul> <?php include( 'adsense_vertical_inc.php' ); #$t_footer_sponsored_links = ''; include( "bot.php" ); ?> Index: index.php =================================================================== RCS file: /cvsroot/mantisbt/web/index.php,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- index.php 17 Dec 2006 05:53:37 -0000 1.29 +++ index.php 12 Mar 2007 08:04:31 -0000 1.30 @@ -223,7 +223,12 @@ <?php include( "adsense_vertical_inc.php" ); ?> <?php - $t_footer_sponsored_links = '<a href="http://www.aoemedia.de/typo3-agentur.html" title="TYPO3" target="_blank">TYPO3</a>'; + $t_footer_sponsored_links = ' + <a href="http://www.skiamade-obertauern.de/" title="Obertauern & Ski Amade" target="_blank">Obertauern & Ski Amade</a>, + <a href="http://www.dubaishortstay.com/" title="Dubai Hotel Apartment -Dubai Villas - Find a Quality Dubai Apartment or Dubai Villa" target="_blank">Dubai Hotel Apartment - Dubai Villas</a>, + <a href="http://www.skiamade-obertauern.de" title="Ski Amade, Obertauern & Flachau" target="_blank">Ski Amade, Obertauern & Flachau</a>, + <a href="http://www.aoemedia.de/typo3-agentur.html" title="TYPO3" target="_blank">TYPO3</a> + '; include( "bot.php" ); ?> Index: fav.ico =================================================================== RCS file: /cvsroot/mantisbt/web/fav.ico,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 Binary files /tmp/cvsfs16lf and /tmp/cvsKcb8AX differ Index: side_menu.php =================================================================== RCS file: /cvsroot/mantisbt/web/side_menu.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- side_menu.php 17 Dec 2006 05:53:37 -0000 1.22 +++ side_menu.php 12 Mar 2007 08:04:31 -0000 1.23 @@ -17,6 +17,7 @@ <a href="credits.php">Credits</a><br /> <a href="download.php">Download</a><br /> <a href="privacy.php">Privacy</a><br /> + <a href="contact_us.php">Contact Us</a><br /> </td> </tr> <tr> @@ -66,9 +67,11 @@ </tr> <tr> <td class="menu_sf"> -<br /> +<!-- <br /> <a href="http://www.dreamhost.com/r.cgi?246268" target="_blank"><img border="0" src="http://www.dreamhost.com/images/rewards/125x31-a.gif" alt="Dream Host" width="125" height="31" /></a> -<br /><br /> +<br /> +--> +<br /> <!-- Donation --> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> Index: .cvsignore =================================================================== RCS file: /cvsroot/mantisbt/web/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- .cvsignore 14 Dec 2006 09:06:45 -0000 1.3 +++ .cvsignore 12 Mar 2007 08:04:31 -0000 1.4 @@ -8,4 +8,5 @@ files .#* -local_73397.xml \ No newline at end of file +local_73397.xml +user_directory_config.php \ No newline at end of file Index: sponsors.php =================================================================== RCS file: /cvsroot/mantisbt/web/sponsors.php,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- sponsors.php 17 Dec 2006 05:53:37 -0000 1.28 +++ sponsors.php 12 Mar 2007 08:04:31 -0000 1.29 @@ -11,6 +11,14 @@ <table border="0" cellspacing="0" cellpadding="10"> + <?php /* Sponsor ad placed on 17-DEC-2006 */ ?> + <tr> + <td><center><a href="http://www.mjm.co.uk" target="_blank"><img src="images/sponsors/mjmlogo.jpg" border="0" alt="Data Recovery Services" width="186" height="66" /></a></center></td> + <td> + <a href="http://www.mjm.co.uk/" target="_blank">MJM Data Recovery</a> provides data recovery services from all manufacturers of hard disk drives, RAID arrays and other storage media. + </td> + </tr> + <?php /* Sponsor ad placed on 13-DEC-2006 */ ?> <tr> <td><center><a href="http://hitflip.de/" target="_blank"><img src="images/sponsors/hitfliplogo.gif" border="0" alt="Tauschen bei Hitflip" width="135" height="70" /></a></center></td> @@ -35,13 +43,14 @@ </td> </tr> - <?php /* Sponsor ad placed on 22-NOV-2006 */ ?> + <?php /* Sponsor ad placed on 22-NOV-2006 - 22-FEB-2007 <tr> <td><center><a href="http://www.vectorpedia.com/" target="_blank"><img src="images/sponsors/vectorpedialogo.gif" border="0" alt="Vectorpedia" width="200" height="80" /></a></center></td> <td> <a href="http://www.vectorpedia.com/" target="_blank">Vectorpedia</a> is a premier human edited web directory organized by region and category which offers informative SEO friendly websites. Our news section provides the viewer with over 50,000 articles of valuable content. </td> </tr> + */ ?> <?php /* Sponsor ad placed on 15-NOV-2006 */ ?> <tr> @@ -51,13 +60,14 @@ </td> </tr> - <?php /* Sponsor ad placed on 07-NOV-2006 */ ?> + <?php /* Sponsor ad placed on 07-NOV-2006 - removed 04-MAR-2007 <tr> <td><center><a href="http://www.aoemedia.de/typo3-agentur.html" target="_blank"><img src="images/sponsors/aoelogo.gif" border="0" alt="AOE media GmbH" width="200" height="80" /></a></center></td> <td> <a href="http://www.aoemedia.de/typo3-agentur.html" target="_blank">AOE media GmbH</a> was among the first to ever start working with the world's most used OpenSource CMS System TYPO3 commercially. Since 2002 we have specialised on providing economical TYPO3 Content Management Solutions, which has in turn won us hundreds of well established clients. With a list of over 300 TYPO3 projects we can look back at a long TYPO3 project history. </td> </tr> + */ ?> <?php /* Sponsor ad placed on 29-OCT-2006 */ ?> <tr> @@ -71,17 +81,19 @@ <tr> <td><center><a href="http://www.skiamade-obertauern.de/" target="_blank"><img src="images/sponsors/targetlogo.gif" border="0" alt="Webkatalog Obertauern & Ski Amade" width="200" height="58" /></a></center></td> <td> - <a href="http://www.skiamade-obertauern.de/" target="_blank">Target</a> - www.Dienstleistungen GmbH offers quality listings at: http://www.skiamade-obertauern.de for the Austrian Skiing - Areas Obertauern & Ski Amade - near Salzburg. + Target - www.Dienstleistungen GmbH offers quality listings for the Austrian Skiing - Areas <a href="http://www.skiamade-obertauern.de/" target="_blank">Obertauern & Ski Amade</a> - near Salzburg. </td> </tr> <?php /* Sponsor ad placed on 15-OCT-2006 */ ?> +<?php /* <tr> <td><center><a href="http://www.dubaishortstay.com/" title="Dubai Apartments - Dubai Villas - Find a Quality Dubai Apartment or Dubai Villa" target="_blank"><img src="images/sponsors/dubaishortstaylogo.jpg" border="0" alt="Dubai Apartments - Dubai Villas - Find a Quality Dubai Apartment or Dubai Villa" width="195" height="33" /></a></center></td> <td> <a href="http://www.dubaishortstay.com/" target="_blank">Dubai Short Stay</a> offers listings of quality furnished Dubai apartments and villas make it easy for you to find the apartment or villa of your choice. </td> </tr> +*/ ?> <?php /* Sponsor ad placed on 22-SEP-2006 */ ?> <tr> @@ -107,13 +119,13 @@ </td> </tr> - <?php /* Sponsor ad placed on 08-SEP-2006 */ ?> + <?php /* Sponsor ad placed on 08-SEP-2006 - 11-MAR-2007 <tr> <td><center><a href="http://www.upscene.com/" target="_blank"><img src="images/sponsors/upscenelogo.gif" border="0" alt="Upscene Productions" width="200" height="51" /></a></center></td> <td> <a href="http://www.upscene.com/" target="_blank">Upscene Productions</a> is a company creating Windows applications for database developers for many different database systems. Their tools aid software developers in doing their jobs faster and better. </td> - </tr> + </tr> */ ?> <?php /* Sponsor ad placed on 05-AUG-2006 */ ?> <tr> @@ -273,20 +285,18 @@ <?php include( "adsense_vertical_inc.php" ); ?> <?php - $t_footer_sponsored_links = '<a href="http://hitflip.de/" target="_blank">Tauschen bei Hitflip</a>, + $t_footer_sponsored_links = ' +<a href="http://www.mjm.co.uk/" target="_blank">MJM Data Recovery</a>, +<a href="http://hitflip.de/" target="_blank">Tauschen bei Hitflip</a>, <a href="http://www.comwebhosting.co.uk" title="Englisch">COM Web Hosting</a>, <a href="http://www.woxikon.de" title="Englisch">Englisch</a>, <a href="http://www.phonewebcam.com/" title="Phonewebcam" target="_blank">Phonewebcam</a>, -<a href="http://www.vectorpedia.com/" title="Vectorpedia" target="_blank">Vectorpedia</a>, <a href="http://www.coveo.com/" title="Coveo" target="_blank">Coveo</a>, -<a href="http://www.aoemedia.de/typo3-agentur.html" title="TYPO3" target="_blank">AOE media GmbH (TYPO3)</a>, <a href="http://www.gnadenalm.at/" title="The Gnadenalm in Obertauern - Salzburg." target="_blank">Obertauern</a>, <a href="http://www.skiamade-obertauern.de/" title="Obertauern & Ski Amade" target="_blank">Obertauern & Ski Amade</a>, -<a href="http://www.dubaishortstay.com/" title="Dubai Apartments - Dubai Villas - Find a Quality Dubai Apartment or Dubai Villa" target="_blank">Dubai Apartments - Dubai Villas</a>, <a href="http://www.strategiclandinvestments.co.uk/" title="Land for Sale" target="_blank">Land for Sale</a>, <a href="http://www.openwebdesign.org/" title="Open Web Design" target="_blank">Open Web Design</a>, <a href="http://www.singletanz.de/" title="SINGLETANZ - Tanzschulen, Tanz-DVD" target="_blank">SINGLETANZ</a>, -<a href="http://www.upscene.com/" title="Upscene Productions" target="_blank">Upscene Productions</a>, <a href="http://www.absolute-software.co.uk/" title="Embedded Programming Services" target="_blank">Embedded Programming</a>, <a href="http://www.abcmodelsport.net/" title="Radio Control Cars" target="_blank">Radio Control Cars</a>, <a href="http://www.foxy.co.uk/" title="Discount DVDs, CDs and Games" target="_blank">Foxy</a>, @@ -306,5 +316,6 @@ <a href="http://www.dasschoenstekind.de/" title="Rammstein Music" target="_blank">Rammstein Music</a>, <a href="http://www.ecoupons.com/" title="eCoupons" target="_blank">eCoupons.com Inc.</a>'; +// <a href="http://www.upscene.com/" title="Upscene Productions" target="_blank">Upscene Productions</a>, include("bot.php"); ?> Index: download.php =================================================================== RCS file: /cvsroot/mantisbt/web/download.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- download.php 17 Dec 2006 05:53:37 -0000 1.11 +++ download.php 12 Mar 2007 08:04:31 -0000 1.12 @@ -14,6 +14,13 @@ <p><span class="section">Mantis Distributions</span></p> <p>Mantis is distributed with several <a href="/wiki/doku.php/mantisbt:distributions">GNU/Linux distributions</a>. Typically the Mantis versions in these distributions are not the latest. For the latest Mantis version use the links above.</p> -<?php include( "adsense_vertical_inc.php" ); ?> +<?php + include( 'adsense_vertical_inc.php' ); -<?php include("bot.php"); ?> \ No newline at end of file + $t_footer_sponsored_links = ' + <a href="http://www.concertgroove.com/" title="Concert Listings" target="_blank">Concert Listings</a>, + <a href="http://www.austria.info/" title="Österreich" target="_blank">Österreich</a> + '; + + include( "bot.php" ); +?> \ No newline at end of file --- NEW FILE: utils_inc.php --- <?php # ------------------ # Strip slashes if necessary (supports arrays) function gpc_strip_slashes( $p_var ) { if ( 0 == get_magic_quotes_gpc() ) { return $p_var; } else if ( !is_array( $p_var ) ){ return stripslashes( $p_var ); } else { foreach ( $p_var as $key => $value ) { $p_var[$key] = gpc_strip_slashes( $value ); } return $p_var; } } ?> Index: changelog.php =================================================================== RCS file: /cvsroot/mantisbt/web/changelog.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- changelog.php 19 Nov 2006 08:05:40 -0000 1.7 +++ changelog.php 12 Mar 2007 08:04:31 -0000 1.8 @@ -18,6 +18,13 @@ ?> </pre> -<?php include( "adsense_vertical_inc.php" ); ?> +<?php + include( 'adsense_vertical_inc.php' ); -<?php include( "bot.php" ); ?> + $t_footer_sponsored_links = ' + <a href="http://www.apollo-detective.com/" title="Detektei" target="_blank">Detektei</a>, + <a href="http://www.rwe.com/rwe-heizkosten/contracting.html" title="Contracting" target="_blank">Contracting</a> + '; + + include( "bot.php" ); +?> \ No newline at end of file Index: top.php =================================================================== RCS file: /cvsroot/mantisbt/web/top.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- top.php 17 Dec 2006 05:53:37 -0000 1.20 +++ top.php 12 Mar 2007 08:04:31 -0000 1.21 @@ -1,7 +1,11 @@ -<?php include( 'config_defaults_inc.php' ); ?> +<?php + include( 'config_defaults_inc.php' ); + require_once( 'utils_inc.php' ); +?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> +<link rel="shortcut icon" href="http://www.mantisbt.org/fav.ico"> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="description" content="Mantis is a popular free web-based bug tracking system. It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver. Mantis has been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should be able to function as a client. It is released under the terms of the GNU General Public License (GPL)." /> <meta name="keywords" content="mantis, bugtracker, bug, tracker, issue, software" /> @@ -19,16 +23,16 @@ <td align="center"> <div align="center" style="background-color:#FFFFCC; top:0px; position: absolute; left:0px; width: 100%; height: 20px; font-size:12px; padding-top:3px; border-bottom: 2px solid #bebebe;"> <big>.: -<a href="http://www.futureware.biz/mantisconnect/">MantisConnect</a> | -<a href="http://www.futureware.biz/mantiswap/">MantisWAP</a> | -<a href="hosting.php">Hosting</a> | -<a href="http://www.futureware.biz/mantisdemo">Demo</a> | -<a href="sponsors.php">Sponsors</a> | -<a href="directory.php">Users</a> | -<a href="/manual/">Manual</a> | -<a href="/forums/">Forums</a> | +<a href="http://www.futureware.biz/mantisconnect/">MantisConnect</a> | +<a href="http://www.futureware.biz/mantiswap/">MantisWAP</a> | +<a href="hosting.php">Hosting</a> | +<a href="http://www.futureware.biz/mantisdemo">Demo</a> | +<a href="sponsors.php">Sponsors</a> | +<a href="directory.php">Users</a> | +<a href="/manual/">Manual</a> | +<a href="/forums/">Forums</a> | <a href="/wiki/">Wiki</a> | -<a href="/bugs/">Bug Tracker</a> | +<a href="/bugs/">Bug Tracker</a> | <a href="consulting.php">Consulting</a> :.</big> @@ -96,7 +100,7 @@ </tr> <tr class="top"> <td class="middle" colspan="3"> -<!-- SiteSearch Google +<!-- SiteSearch Google <form method="get" action="http://www.google.com/custom" target="_top"> <input type="hidden" name="domains" value="mantisbt.org"> <input type="radio" name="sitesearch" value=""> --- NEW FILE: directory_entry_submit.php --- <?php require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'user_directory_config.php' ); require_once( LIB_DIR . '/hn_captcha.class.php' ); require_once( LIB_DIR . '/class.phpmailer.custom.php' ); include_once( CLASS_MANTIS_UD ); $t_sub_title = 'Submit Directory Entry'; include( "top.php" ); ?> <span class="page_title">Submit Directory Entry</span> <hr size="1" noshade="noshade" width="100%" /> <?php # make captcha case insensitive if ( isset( $_POST['private_key'] ) ) { $_POST['private_key'] = strtoupper( $_POST['private_key'] ); } $f_company_name = gpc_strip_slashes( isset( $_POST['company_name'] ) ? $_POST['company_name'] : '' ); $f_contact_name = gpc_strip_slashes( isset( $_POST['contact_name'] ) ? $_POST['contact_name'] : '' ); $f_contact_email = gpc_strip_slashes( isset( $_POST['contact_email'] ) ? $_POST['contact_email'] : '' ); $f_website_url = gpc_strip_slashes( isset( $_POST['website_url'] ) ? $_POST['website_url'] : '' ); $f_mantis_url = gpc_strip_slashes( isset( $_POST['mantis_url'] ) ? $_POST['mantis_url'] : '' ); $f_comments = gpc_strip_slashes( isset( $_POST['comments'] ) ? $_POST['comments'] : '' ); $f_hash = gpc_strip_slashes( isset( $_POST['hash'] ) ? $_POST['hash'] : '' ); $g_error = ''; $g_show_form = true; function saveValue() { global $f_company_name, $f_contact_name, $f_contact_email, $f_website_url, $f_mantis_url, $f_comments; $mantis_ud = new mantis_user_directory_entry(); $pre = substr( md5( uniqid( rand(), true ) ), 0, 32 ); $mantis_ud->hash = md5( $pre ); $mantis_ud->date_submitted = date( "Y-m-d" ); $mantis_ud->company_name = $f_company_name; $mantis_ud->contact_name = $f_contact_name; $mantis_ud->contact_email = $f_contact_email; $mantis_ud->website_url = $f_website_url; $mantis_ud->mantis_url = $f_mantis_url; $mantis_ud->comments = $f_comments; $mantis_ud->status = Submitted; $mantis_ud->high_profile = Hi_Profile_No; $mantis_ud->Save(); return $mantis_ud; } function checkForm() { global $g_error, $f_contact_name, $f_contact_email, $f_company_name, $f_website_url, $f_mantis_url; if ( trim( $f_contact_name ) == '' ) { $g_error .= 'Name is a required field.<br />'; } if ( !isset( $f_contact_email ) || trim( $f_contact_email ) == '' ) { $g_error .= 'Email is a required field.<br />'; } else { /* doesn't work with ab...@ex... email addresses. if ( !eregi("^[[:alnum:]]+\@[[:alnum:]]+\.[a-z]{2,4}$", $f_contact_email ) ) { $g_error .= 'Supplied email is not valid.<br />'; } */ } if ( !isset( $f_company_name ) || trim( $f_company_name ) == '' ) { $g_error .= 'Company/Project is a required field.<br />'; } if ( !isset( $f_website_url ) || trim( $f_website_url ) == '' ) { $g_error .= 'Website URL is a required field.<br />'; } if ( isset( $f_website_url ) && !(strstr( $f_website_url, 'http://' ) || strstr( $f_website_url, 'https://' ) ) ) { $f_website_url = 'http://' . $f_website_url; } if ( isset( $f_mantis_url ) && !( strstr( $f_mantis_url, 'http://' ) || strstr( $f_mantis_url, 'https://' ) ) ) { if ( trim( $_POST['mantis_url'] ) != '' ) { $f_mantis_url = 'http://' . $f_mantis_url; } } } $captcha =& new hn_captcha( $CAPTCHA_INIT ); if ( isset( $_POST['issubmit'] ) && $_POST['issubmit'] == 1 ) { switch ( $captcha->validate_submit() ) { // was submitted and has valid keys case 1: // PUT IN ALL YOUR STUFF HERE // checkForm(); if ( $g_error == '' ) { $t_mantis_ud = saveValue(); $t_body = MAIL_BODY; $t_body = str_replace( "{%NAME%}", $t_mantis_ud->contact_name, $t_body ); $t_body = str_replace( "{%COMPANY%}", $t_mantis_ud->company_name, $t_body ); $t_body = str_replace( "{%HASH%}", $t_mantis_ud->hash, $t_body ); $t_subject = MAIL_SUBJECT; $t_subject = str_replace( "{%NAME%}", $t_mantis_ud->contact_name, $t_subject ); $t_subject = str_replace( "{%COMPANY%}", $t_mantis_ud->company_name, $t_subject ); $t_subject = str_replace( "{%HASH%}", $t_mantis_ud->hash, $t_subject ); $mailer = myMailer( htmlspecialchars( $t_body ), $t_mantis_ud->contact_email, '', false ); $mailer->Subject = $t_subject; if ( !$mailer->Send() ) { //not ok echo '<p>An error has occurred while sending the email to validate your email address.</p>'; } else { //ok echo '<p>Thanks for registering in the users directory. You will receive an email to validate your email address shortly.</p>'; $g_show_form = false; } } else { echo "<b>$g_error</b>"; } break; // was submitted with no matching keys, but has not reached the maximum try's case 2: echo '<p>Your captcha input is not valid. Please try again.</p>'; break; // was submitted, has bad keys and also reached the maximum try's case 3: echo '<p>was submitted, has bad keys and also reached the maximum tries.</p>'; $g_show_form = false; break; // was not submitted, first entry default: $g_error.= "Not ok. First entry."; break; } $_POST['issubmit'] = ''; } if ( $g_show_form ) { ?> <p align="left">Please enter the Directory Entry details:</p> <p> <form name="frmAddEntry" method="post" onsubmit="return v.exec()"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" style="padding:10px;">Contact Name:</td> <td width="80%" style="padding:10px;"><input style="width:270px;" name="contact_name" type="text" id="contact_name" value="<?php echo htmlspecialchars( $f_contact_name ); ?>" /></td> </tr> <tr> <td style="padding:10px;">Email Address:</td> <td style="padding:10px;"><input style="width:270px;" name="contact_email" type="text" id="contact_email" value="<?php echo htmlspecialchars( $f_contact_email ); ?>" /></td> </tr> <tr> <td style="padding:10px;">Company/Project Name:</td> <td style="padding:10px;"><input style="width:270px;" name="company_name" type="text" id="company_name" value="<?php echo htmlspecialchars( $f_company_name ); ?>" /></td> </tr> <tr> <td style="padding:10px;">Website URL:</td> <td style="padding:10px;"><input style="width:270px;" name="website_url" type="text" id="website_url" value="<?php echo htmlspecialchars( $f_website_url ); ?>" /></td> </tr> <tr> <td width="20%" style="padding:10px;">Mantis URL (leave empty for private installations): </td> <td width="80%" style="padding:10px;"><input style="width:270px;" name="mantis_url" type="text" id="mantis_url" value="<?php echo htmlspecialchars( $f_mantis_url ); ?>" /></td> </tr> <tr> <td width="20%" style="padding:10px;">Comments:</td> <td width="80%" style="padding:10px;"><textarea name="comments" id="comments" style="height:100px; width:270px; font-size:12px; margin:0; padding:0;"><?php echo htmlspecialchars( $f_comments ); ?></textarea></td> </tr> <tr> <td style="padding:10px;"></td> <td style="padding:10px;"><?php echo $captcha->display_captcha()?><br><?php if ( isset( $captcha->msg1 ) ) { echo $captcha->msg1; } ?></td> </tr> <tr> <td style="padding:10px;">Captcha:</td> <td style="padding:10px;"><input type="text" name="private_key" value="" maxlength="5" size="5" /></td> </tr> <tr> <td style="padding:10px;"> </td> <td style="padding:10px;"> <input name="admAdd" type="submit" id="admAdd" value="Submit" /> <input name="issubmit" type="hidden" value="1" /> </td> </tr> </table> </form> </p> <script language="JavaScript"> var o_fields = { 'contact_name':{'l':'Contact Name','r':true}, 'contact_email':{'l':'Email Address','r':true, 'f':'email'}, 'company_name':{'l':'Company/Project Name','r':true}, 'website_url':{'l':'Website URL','r':true}, 'private_key' : {'l':'Captcha','r':true, 'mn':5} } var v = new validator('frmAddEntry', o_fields, {'to_disable' : ['Submit'],'alert' : 1}); </script> <?php } include( 'adsense_vertical_inc.php' ); include( 'bot.php' ); ?> --- NEW FILE: directory_entry_verify.php --- <?php require_once ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'user_directory_config.php' ); require_once ( LIB_DIR . '/class.phpmailer.custom.php' ); include_once ( CLASS_MANTIS_UD ); $t_sub_title = 'Directory Entry Verification'; include( "top.php" ); ?> <span class="page_title">Directory Entry Verification</span> <hr size="1" noshade="noshade" width="100%" /> <?php $g_msg = ''; if ( isset( $_GET['id'] ) && strlen( $_GET['id'] ) == 32 ) { $mantis_ud = new mantis_user_directory_entry(); $mantis_ud = $mantis_ud->GetByHash( $_GET['id'] ); if ( $mantis_ud->id != 0 || $mantis_ud->id != '' ) { if ( $mantis_ud->status > Submitted ) { $g_msg = 'Your directory entry has now been verified and is pending administrator\'s approval to appear on the site. Thanks for your registration.'; } else { $mantis_ud->status = Confirmed; $mantis_ud->Save(); $t_contact_name = htmlspecialchars( $mantis_ud->contact_name ); $t_company_name = htmlspecialchars( $mantis_ud->company_name ); $t_contact_email = htmlspecialchars( $mantis_ud->contact_email ); $t_website_url = htmlspecialchars( $mantis_ud->website_url ); $t_mantis_url = htmlspecialchars( $mantis_ud->mantis_url ); $t_comments = htmlspecialchars( $mantis_ud->comments ); $t_hash = htmlspecialchars( $mantis_ud->hash ); $t_body = "The following directory entry is pending approval.\n\nName: $t_contact_name\nCompany/Project: $t_company_name\nEmail: $t_contact_email\nWebURL: $t_website_url\nMantis URL: $t_mantis_url\nComments:\n$t_comments\n\n"; $t_body .= 'Approve (High Profile): ' . DOCUMENT_WEB_ROOT . "directory_entry_moderate.php?profile=1&hash=$t_hash\n"; $t_body .= 'Approve: ' . DOCUMENT_WEB_ROOT . "directory_entry_moderate.php?profile=0&hash=$t_hash\n"; $t_body .= 'Delete Entry: ' . DOCUMENT_WEB_ROOT . "directory_entry_moderate.php?del=1&hash=$t_hash\n\n"; $mailer = myMailer( $t_body, MODERATOR_MAIL, '', false ); $mailer->Subject = "Request approval for '$t_company_name'"; if ( !$mailer->Send() ) { //not ok $g_msg = 'Unable to send email to administrator to request approval. Please contact the administrator directly.'; } else { //ok $g_msg = EMAIL_VERIFIED; } } } else { $g_msg = 'Invalid Key'; } } else { $g_msg .= '<p>Invalid directory entry id, please check the URL.</p>'; } ?> <p><?php echo $g_msg ?></p> <?php include( 'adsense_vertical_inc.php' ); include( 'bot.php' ); ?> Index: directory.php =================================================================== RCS file: /cvsroot/mantisbt/web/directory.php,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- directory.php 14 Dec 2006 09:06:45 -0000 1.56 +++ directory.php 12 Mar 2007 08:04:31 -0000 1.57 @@ -1,285 +1,76 @@ -<?php - $t_sub_title = "Users Directory"; - - include( "top.php" ); - - $g_entry_count = 0; - - function section( $p_letter ) { - echo "<p><a name=\"$p_letter\" id=\"$p_letter\" /><span class=\"section\">- $p_letter -</span></p>\n"; - echo "<ul>\n"; - } - - function entry( $p_name, $p_url, $p_mantis_url = null ) { - global $g_entry_count; - - $g_entry_count++; +<?php + require_once ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'user_directory_config.php' ); + include_once ( CLASS_MANTIS_UD ); - if ( null === $p_mantis_url ) { - echo "<li><a href=\"$p_url\" target=\"_blank\" rel=\"nofollow\">$p_name</a></li>\n"; - } else { - echo "<li><a href=\"$p_url\" target=\"_blank\" rel=\"nofollow\">$p_name</a> (<a href=\"$p_mantis_url\" target=\"_blank\" rel=\"nofollow\">public</a>)</li>\n"; - } - } + $t_sub_title = 'Users Directory'; - function section_end() { - echo "</ul>\n\n"; - } + include( "top.php" ); ?> -<span class="page_title">Users Directory</span> +<span class="page_title">Mantis Users Directory</span> <hr size="1" noshade="noshade" width="100%" /> -<p>This is a directory of companies and open source projects that are using Mantis as their issue tracking system. If -your company is not listed below, or you know of an open source project that uses Mantis but is not listed below, please contact -"vboctor -at- users -dot- sourceforge -dot- net" to update the list.</p> +<p>This is a directory of companies and open source projects that are using Mantis as their issue tracking system. If your company is not listed below, or you know of an open source project that uses Mantis but is not listed below, please <a href="directory_entry_submit.php">submit</a> it here.</p> -<p>When possible consider adding a link back to Mantis website. You can use the button on the left side of the page, but -please download it and reference it from your site to reduce the load on the Mantis web server.</p> +<p>When possible consider adding a link back to Mantis website. You can use the button on the left side of the page, but please download it and reference it from your site to reduce the load on the Mantis web server.</p> <?php - section( '0-9' ); - entry( '4eyes', 'http://www.4eyes.ch' ); - section_end(); - - section( 'A' ); - entry( 'Absolute Software', 'http://www.absolute-software.co.uk/' ); - entry( 'AG SOFTWARE', 'http://www.agsoftware.hu/' ); - entry( 'AirBus', 'http://www.airbus.com/' ); - entry( 'aitools.org', 'http://aitools.org/' ); - entry( 'AlphaCarina Software GmbH', 'http://www.alphacarina.de/' ); - entry( 'ALSA project', 'http://www.alsa-project.org/', 'https://bugtrack.alsa-project.org/alsa-bug/login_page.php' ); - entry( 'Altima Web Systems', 'http://www.altima.com.ua/en/', 'http://altima.com.ua/bugtracking/main_page.php' ); - entry( 'AOE Media GmbH', 'http://www.aoemedia.de/' ); - entry( 'Applied Informatics', 'http://www.appinf.com/' ); - entry( 'ASEP', 'http://www.asepgroup.com' ); - entry( 'Asterisk Project', 'http://www.digium.com/', 'http://bugs.digium.com/' ); - entry( 'Asystance', 'http://www.asystance.nl/' ); - entry( 'Avenity', 'http://www.avenity.com/' ); - entry( 'Axon Pro', 'http://www.axonpro.sk/', null ); - entry( 'AYS Systems', 'http://www.ayssystems.co.uk/', null ); - section_end(); - - section( 'B' ); - entry( 'Backslash', 'http://www.backslash.com.au/', null ); - entry( 'Base4 Sistemas', 'http://www.base4.com.br/', null ); - entry( 'BBR Verkehrstechnik GmbH', 'http://www.bbr-vt.de/' ); - entry( 'Beyond Ordinary Software Solutions', 'http://www.beyond-ordinary.com/', null ); - entry( 'BigSoft Limited', 'http://www.bigsoft.co.uk/', null ); - section_end(); - - section( 'C' ); - entry( 'CalidStyle', 'http://www.calidstyle.com' ); - entry( 'Candis Group (Beijing)', 'http://www.candis.com.cn/', null ); - entry( 'CAPSHER Technology, Inc.', 'http://www.capsher.com/', null ); - entry( 'Cel Kunststoffen', 'http://celkunststoffen.khlim.be/cel/', null ); - entry( 'chan_sccp', 'http://chan-sccp.sourceforge.net/', 'http://www.czmok.de/devtrack/' ); - entry( 'Circuitlink International', 'http://www.circuitlink.com.au/' ); - entry( 'clarkconnect', 'http://www.clarkconnect.org/', 'http://www.clarkconnect.org/bugs/' ); - entry( 'CMSform<sup>E</sup>', 'http://cmsforme.sourceforge.net/', 'http://cmsforme.sourceforge.net/bugs/' ); - entry( 'Codestuff LTD', 'http://www.codestuff.net/' ); - entry( 'Control Engineering Group', 'http://control.ee.ethz.ch/~ceg/', 'http://control.ee.ethz.ch/~ceg/mantis/' ); - entry( 'Convergys', 'http://www.convergys.com/', null ); - entry( 'csUnit', 'http://www.csunit.org/', null ); - entry( 'CVn', 'http://www.cavern.pl' ); - entry( 'C-Toys', 'http://www.ctoys.ru' ); - section_end(); - - section( 'D' ); - entry( 'Dataprom', 'http://www.dataprom.com/' ); - entry( 'Deganius', 'http://www.deganius.de/' ); - entry( 'DeniX Solutions', 'http://denixsolutions.com/' ); - entry( 'die_schnittsteller', 'http://www.schnittsteller.de/' ); - entry( 'Digimap (Guernsey) Ltd', 'http://www.digimap.gg/' ); - entry( 'Digital Edge Software & Consulting', 'http://www.digitaledgesw.com' ); - entry( 'Dr. WEB', 'http://www.drweb.com/', 'http://bugs.drweb.com/' ); - entry( 'dotProject', 'http://www.dotproject.net/', 'http://www.dotproject.net/mantis/' ); - section_end(); - - section( 'E' ); - entry( 'Earth Systems Science Computational Centre (ESSCC)', 'http://www.esscc.uq.edu.au' ); - entry( 'Easy To Work', 'http://www.easytowork.nl/' ); - entry( 'eboxy', 'http://eboxy.sourceforge.net/', 'http://eboxy.sourceforge.net/mantis/' ); - entry( 'ebswift.com', 'http://www.ebswift.com/', 'http://www.ebswift.com/bugtrack/mantis/' ); - entry( 'Edoceo, Inc.', 'http://www.edoceo.com/', null ); - entry( 'Emphasis Development', 'http://www.emphasisdevelopment.com/', 'http://www.emphasisdevelopment.com/mantis/' ); - entry( 'encoway', 'http://www.encoway.de/', null ); - entry( 'EPICS', 'http://www.aps.anl.gov/epics/', 'http://www.aps.anl.gov/epics/mantis/' ); - section_end(); - - section( 'F' ); - entry( 'FileVision', 'http://www.filevision.net' ); - entry( 'Florian Müller GmbH', 'http://www.florian-mueller.de' ); - entry( 'Forum One Communications', 'http://www.forumone.com/' ); - entry( 'Fraunhofer IPSI', 'http://ipsi.fraunhofer.de/concert/' ); - entry( 'French ministry of culture and communication, IT department', 'http://www.culture.gouv.fr/' ); - entry( 'FTPEditor', 'http://www.ftpeditor.com/', 'http://www.ftpeditor.com/support/mantis/' ); - section_end(); - - section( 'G' ); - entry( 'Gambit Consulting', 'http://www.gambit.de/' ); - entry( 'German Aerospace Center (DLR)', 'http://www.dlr.de/' ); - entry( 'GigaVoice - Internet Marketing & Outsourcing Solutions', 'http://gigavoice.com' ); - entry( 'GRAMPS', 'http://www.gramps-project.org', 'http://bugs.gramps-project.org' ); - entry( 'GROU.PS', 'http://grou.ps/' ); - entry( 'Gruppo Tesi', 'http://www.gruppotesi.com/' ); - section_end(); - - section( 'H' ); - entry( 'Handydev', 'http://www.handydev.com/' ); - entry( 'Hitflip', 'http://www.hitflip.de/', null ); - entry( 'Hostsharing e.G.', 'http://www.hostsharing.net/', 'https://todo.hostsharing.net/' ); - section_end(); - - section( 'I' ); - entry( 'IDSecuritySuite', 'http://www.idsecuritysuite.com/' ); - entry( 'Illumen', 'http://www.illumen.co.uk/' ); - entry( 'Intra2net', 'http://www.intra2net.com/' ); - entry( 'Institute for Computational Biomedicine (ICB)', 'http://icb.med.cornell.edu/', 'http://icbtools.med.cornell.edu/mantis/' ); - entry( 'INTEC International GmbH', 'http://www.intec-international.com/' ); - entry( 'inveress.net', 'http://www.inveress.net/' ); - entry( 'I-Tul Design & Software', 'http://www.i-tul.com/' ); - section_end(); - - section( 'J' ); - entry( 'Jack Audio Connection Kit', 'http://jackit.sourceforge.net/', 'http://jackit.sourceforge.net/mantis/' ); - entry( 'JavlinConsulting', 'http://www.javlinconsulting.com/' ); - entry( 'julitec', 'http://www.julitec.de/' ); - entry( 'Juno Records', 'http://www.juno.co.uk' ); - section_end(); - - section( 'K' ); - entry( 'Knowmax', 'http://www.knowmax.nl/', 'http://www.caremax.nl/' ); - section_end(); - - section( 'L' ); - entry( 'Lachowski Datensysteme GmbH', 'http://www.lacho.net' ); - entry( 'LanAction', 'http://lanaction.sourceforge.net/', 'http://lanaction.sourceforge.net/bugtracker/' ); - entry( 'LifeType', 'http://www.lifetype.de/', 'http://bugs.lifetype.net/' ); - entry( 'LIVEwwware', 'http://www.livewwware.com/', 'http://mantis.livewwware.com/' ); - entry( 'Logical Arts', 'http://www.logicalartsinc.com/' ); - section_end(); - - section( 'M' ); - entry( 'MantisConnect', 'http://www.futureware.biz/mantisconnect/', 'http://www.futureware.biz/mantis/' ); - entry( 'MediaPortal', 'http://mediaportal.sourceforge.net/', 'http://nolanparty.com/mediaportal.sourceforge.net/mantis/' ); - entry( 'Mfatix Co., Ltd.', 'http://www.mfatix.com/', 'http://www.mfatix/com/issues/' ); - entry( 'MindTribe Product Engineering', 'http://www.mindtribe.com/' ); - entry( 'MiTo Team', 'http://mito.exofire.net/' ); - entry( 'Monkrat', 'http://www.monkrat.com/' ); - entry( 'Mytholos', 'http://www.mytholos.com/' ); - section_end(); - - section( 'N' ); - entry( 'National Centre for Applied Learning Technologies (NCALT)', 'http://www.ncalt.com' ); - entry( 'Navigo Systems', 'http://www.navigo.com.au/' ); - entry( 'Nox Wizard', 'http://noxwizard.sourceforge.net/', 'http://noxwizard.sourceforge.net/mantis/' ); - entry( 'NWEA', 'http://www.nwea.org' ); - section_end(); + $mantis_ud = new mantis_user_directory_entry(); + $mantis_ud = $mantis_ud->Getmantis_user_directory_entryDisplayList( 'company_name' ); - section( 'O' ); - entry( 'Olate', 'http://www.olate.co.uk/', 'http://www.olate.co.uk/tracker/' ); - entry( 'OLS Software', 'http://www.ols.co.il' ); - entry( 'OpenFlyers', 'http://openflyers.org/', 'http://bts.openflyers.org/' ); - entry( 'OtwarteRozwiazania', 'http://www.OtwarteRozwiazania.com/', 'http://mantis.OtwarteRozwiazania.com/' ); - section_end(); + function get_index_char( $p_company_name ) { + $t_letter = strtoupper( $p_company_name[0] ); - section( 'P' ); - entry( 'Particracy', 'http://www.particracy.net/' ); - entry( 'phpayment', 'http://www.phpayment.de/', 'http://bugs.phpayment.de/' ); - entry( 'phpBB', 'http://phpbb-php5mod.sourceforge.net/', 'http://phpbb-php5mod.sourceforge.net/bugs/' ); - entry( 'phpWebnotes', 'http://www.futureware.biz/webnotes/', 'http://www.futureware.biz/mantis/' ); - entry( 'PHPlist', 'http://www.phplist.com/', 'http://mantis.tincan.co.uk/' ); - entry( 'phpMyFAQ', 'http://www.phpmyfaq.de/', 'http://bugs.phpmyfaq.de/' ); - entry( 'phpMyEdit', 'http://phpmyedit.org/', 'http://platon.sk/projects/main_page.php?project_id=5' ); - entry( 'Pointstone Software', 'http://www.pointstone.com/', 'http://bugs.pointstone.com/' ); - entry( 'Project JEDI', 'http://homepages.borland.com/jedi/', 'http://homepages.borland.com/jedi/issuetracker/' ); - entry( 'purepistos.net', 'http://www.purepistos.net/', 'http://purepistos.net/mantis/' ); - section_end(); + if ( ( $t_letter >= '0' ) && ( $t_letter <= '9' ) ) { + return '0-9'; + } - section( 'Q' ); - entry( 'QEM', 'http://www.qem.it/en/fr_en_home/pg_en_home.htm' ); - entry( 'QtParted', 'http://qtparted.sourceforge.net/', 'http://qtparted.sourceforge.net/bugs/' ); - section_end(); + if ( ( $t_letter >= 'A' ) && ( $t_letter <= 'Z' ) ) { + return $t_letter; + } - section( 'R' ); + return '*'; + } - entry( 'Radiant Core', 'http://www.radiantcore.com/' ); - entry( 'RageIRCd', 'http://rageircd.sourceforge.net/', 'http://rageircd.sourceforge.net/mantis/' ); - entry( 'RealDecoy', 'http://www.realdecoy.com/' ); - entry( 'Redwood Custom Communications', 'http://www.redwoodcc.com/' ); - entry( 'redWall Firewall', 'http://www.redwall-firewall.com/', 'http://www.redwall-firewall.com/issue' ); - entry( 'Reebok Poland S.A.', 'http://www.reebok.pl/', 'http://mantis.reebok.pl/' ); - entry( 'Risse Design', 'http://risse.org/' ); - entry( 'Ritlabs', 'http://www.ritlabs.com/', 'http://www.ritlabs.com/bt/' ); - entry( 'rsbac', 'http://www.rsbac.org/', 'http://bugtracker.rsbac.org/' ); - entry( 'RS MediaGroup', 'http://www.rsmg.de/' ); - section_end(); - - section( 'S' ); - entry( 'Saab', 'http://www.saab.se/' ); - entry( 'Scribus', 'http://www.scribus.net/', 'http://bugs.scribus.net/' ); - entry( 'SCS Software', 'http://www.scssoft.com' ); - entry( 'SCTV', 'http://sctv.ucsc.edu/', 'http://sctv.ucsc.edu/mantis/' ); - entry( 'SELEX SI - Gematronik Weather Radar Systems', 'http://www.gematronik.com/' ); - entry( 'seracom gmbh', 'http://seracom.org/' ); - entry( 'Shadow', 'https://sourceforge.net/projects/shadow/', 'http://www.open-shadow.org/mantis/' ); - entry( 'six apart', 'http://www.sixapart.com/', 'http://sixapart.com/mantis/' ); - entry( 'SkyGate International', 'http://www.skygate.dk/' ); - entry( 'SourceFubar.Net', 'http://www.sourcefubar.net/', 'http://bugs.sourcefubar.net/' ); - entry( 'Soficol', 'http://www.soficol.com/' ); - entry( 'Soft-Gems', 'http://www.soft-gems.net/', 'http://support.soft-gems.net/mantis/' ); - entry( 'Solo Group, Inc.', 'http://www.sologroup.com/' ); - section_end(); - - section( 'T' ); - entry( 'TanuSoft', 'http://www.tanusoft.com/' ); - entry( 'Theratech', 'http://www.theratech.de/', 'http://www.support.theratech.de/' ); - entry( 'Thornsoft Development, Inc.', 'http://www.thornsoft.com/', 'http://www.thornsoft.com/mantis/' ); - entry( 'Timber Windows', 'http://www.timberwindows.com/' ); - entry( 'Truelite', 'http://www.truelite.it/', 'http://bugs.truelite.it/' ); - entry( 'Turkix', 'http://www.turkix.org/', 'http://bug.turkix.org/' ); - entry( 'Twig Project', 'http://informationgateway.org/', 'http://bugs.informationgateway.org/' ); - section_end(); - - section( 'U' ); - entry( 'Uncommonplace', 'http://www.uncommonplace.com/', 'http://www.uncommonplace.com/bugs/' ); - entry( 'United Water International', 'http://www.uwi.com.au/' ); - entry( 'UnrealIRCd', 'http://www.unrealircd.org/', 'http://bugs.unrealircd.org/' ); - entry( 'USA Z&P', 'http://usazyp.com.ve/' ); - section_end(); - - section( 'V' ); - entry( 'Vantage Controls', 'http://www.vantagecontrols.com' ); - entry( 'Vicus eBusiness Solutions', 'http://www.vicus.nl/ticketmanagement' ); - entry( 'Vitalina Web Technologies', 'http://www.vitalina-web-technologies.com/', 'http://bugtrack.vitalina-web-technologies.com/' ); - section_end(); + $t_data = ''; + $entry_count = count( $mantis_ud ); + for ( $i = 0; $i < $entry_count; ) { + $t_letter = get_index_char( $mantis_ud[$i]->company_name ); + + echo "<p><a name=\"$t_letter\" id=\"$t_letter\" /><span class=\"section\">- $t_letter -</span></p>\n"; + echo "<ul>\n"; + + while ( $i < $entry_count && $t_letter == get_index_char( $mantis_ud[$i]->company_name ) ) { + $t_website_url = htmlspecialchars( $mantis_ud[$i]->website_url ); + $t_company_name = htmlspecialchars( $mantis_ud[$i]->company_name ); - section( 'W' ); - entry( 'Wash One', 'http://www.wash-one.com/' ); - entry( 'Water Corporation', 'http://www.watercorporation.com.au/' ); - entry( 'Web-CP', 'http://www.web-cp.net/', 'http://www.web-cp.net/mantis/' ); - entry( 'WebCommons :: Web Programming Services', 'http://www.webcommons.biz/' ); - entry( 'wiseGEEK', 'http://www.wisegeek.com/' ); - entry( 'WordPress', 'http://wordpress.org/', 'http://mosquito.wordpress.org/' ); - section_end(); + if ( $mantis_ud[$i]->high_profile ) { + $t_company_name = '<b>'. $t_company_name . '</b>'; + } - section( 'X' ); - entry( 'Xillion ICT Solutions BV', 'http://www.xillion.nl/' ); - entry( 'XSALTO', 'http://www.xsalto.com/' ); - section_end(); + $t_data = "<li><a href=\"$t_website_url\" target=\"_blank\" rel=\"nofollow\">$t_company_name</a>"; - section( 'Y' ); - entry( 'Yoper', 'http://www.yoper.com/', 'http://www.yoper.com/bugtracker/' ); - section_end(); + if ( $mantis_ud[$i]->mantis_url != '' ) { + $t_mantis_url = htmlspecialchars( $mantis_ud[$i]->mantis_url ); + $t_data .= " (<a href=\"$t_mantis_url\" target=\"_blank\" rel=\"nofollow\">public</a>)"; + } - section( 'Z' ); - entry( 'Zoobox', 'http://www.zoobox.co.uk/' ); - section_end(); + $t_data .= "</li>\n"; + + echo $t_data; + $i++; + } + + echo "</ul>\n\n"; + } + + echo '<p>', $entry_count, ' members in directory.</p>'; - echo '<p>', $g_entry_count, ' members in directory.</p>'; -?> + include( 'adsense_vertical_inc.php' ); -<?php include( "adsense_vertical_inc.php" ); ?> + $t_footer_sponsored_links = ' + <a href="http://www.furniture-spain.co.uk" title="Furniture Spain" target="_blank">Furniture Spain</a> + '; -<?php include( "bot.php" ); ?> \ No newline at end of file + include( "bot.php" ); +?> \ No newline at end of file --- NEW FILE: directory_entry_moderate.php --- <?php require_once ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'user_directory_config.php' ); require_once ( LIB_DIR . '/class.phpmailer.custom.php' ); include_once ( CLASS_MANTIS_UD ); $t_sub_title = 'Directory Entry Moderation'; include( "top.php" ); ?> <span class="page_title">Directory Entry Moderation</span> <hr size="1" noshade="noshade" width="100%" /> <?php $g_msg = ''; if ( isset( $_GET['hash'] ) && strlen( $_GET['hash'] ) == 32 ) { $mantis_ud = new mantis_user_directory_entry(); $mantis_ud = $mantis_ud->GetByHash( $_GET['hash'] ); if ( $mantis_ud->id != 0 || $mantis_ud->id != '' ) { if ( isset( $_GET['del'] ) && $_GET['del'] == 1 ) { $mantis_ud->Delete(); $g_msg = 'Entry Successfully Deleted'; } else { if ( $mantis_ud->status == Approved ) { $g_msg = 'Entry Already Approved'; } else if ( $mantis_ud->status < Confirmed ) { $g_msg = 'Entry Email Not Confirmed'; } else { $mantis_ud->status = Approved; $mantis_ud->high_profile = isset($_GET['profile']) ? $_GET['profile'] : 0; $mantis_ud->Save(); $t_body = MAIL_BODY_APPROVED; $t_body = str_replace( "{%NAME%}", $mantis_ud->contact_name, $t_body ); $t_body = str_replace( "{%COMPANY%}", $mantis_ud->company_name, $t_body ); $t_subject = MAIL_SUBJECT_APPROVED; $t_subject = str_replace( "{%NAME%}", $mantis_ud->contact_name, $t_subject ); $t_subject = str_replace( "{%COMPANY%}", $mantis_ud->company_name, $t_subject ); $mailer = myMailer( $t_body, $mantis_ud->contact_email, '', false ); $mailer->Subject = $t_subject; if ( !$mailer->Send() ) { //not ok $g_msg = 'Directory Entry approved. However, failed to send confirmation email.'; } else { //ok if ( $mantis_ud->high_profile ) { $g_msg = 'High profile directory entry approved and confirmation email sent successfully.'; } else { $g_msg = 'Directory entry approved and confirmation email sent successfully.'; } } } } } else { $g_msg = 'Invalid Key or Entry Already Deleted'; } } else { $g_msg = 'There are no entries with the specified hash.'; } //Cleanup Process $mantis_ud = new mantis_user_directory_entry(); $mantis_ud = $mantis_ud->Getmantis_user_directory_entryToCleanList(date('Y-m-d',time()-(3600*24*7))); for ( $i = 0; $i < count( $mantis_ud ); $i++ ) { $mantis_ud[$i]->Delete(); } $tempfolder = $CAPTCHA_INIT['tempfolder']; if ( $handle = @opendir( $tempfolder ) ) { while ( false !== ( $file = readdir( $handle ) ) ) { if ( !is_file( $tempfolder.$file ) ) { continue; } // check for name-prefix, extension and filetime if ( strrchr( $file, '.' ) == '.jpg' ) { if ( ( time() - filemtime( $tempfolder.$file ) ) >= 600 ) { $res = @unlink( $tempfolder.$file ); } } } closedir( $handle ); } echo "<p>$g_msg</p>"; include( 'adsense_vertical_inc.php' ); include( 'bot.php' ); ?> --- NEW FILE: contact_us.php --- <?php require_once ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'user_directory_config.php' ); require_once( LIB_DIR . '/hn_captcha.class.php' ); require_once( LIB_DIR . '/class.phpmailer.custom.php' ); $t_sub_title = "Contact Us"; include( "top.php" ); ?> <span class="page_title">Contact Us</span> <hr size="1" noshade="noshade" width="100%" /> <?php # make captcha case insensitive if ( isset( $_POST['private_key'] ) ) { $_POST['private_key'] = strtoupper( $_POST['private_key'] ); } $f_contact_name = gpc_strip_slashes( isset( $_POST['contact_name'] ) ? $_POST['contact_name'] : '' ); $f_contact_email = gpc_strip_slashes( isset( $_POST['contact_email'] ) ? $_POST['contact_email'] : '' ); $f_subject = gpc_strip_slashes( isset( $_POST['subject'] ) ? $_POST['subject'] : '' ); $f_email_body = gpc_strip_slashes( isset( $_POST['email_body'] ) ? $_POST['email_body'] : '' ); $g_error =''; $t_show_form = true; function checkForm(){ global $g_error, $f_contact_name, $f_contact_email, $f_subject, $f_email_body; if ( !isset( $f_contact_name ) || trim( $f_contact_name ) == '' ) { $g_error .= 'Name is a required field.<br />'; } if ( !isset( $f_contact_email ) || trim( $f_contact_email ) == '' ) { $g_error .= 'Email is a required field.<br />'; } else { /* does work with bl...@bl... if ( !eregi( "^[[:alnum:]]+\@[[:alnum:]]+\.[a-z]{2,4}$", $f_contact_email ) ) { $g_error .= 'Email address is invalid.<br />'; } */ } if ( !isset( $f_subject ) || trim( $f_subject ) == '' ) { $g_error .= 'Subject is a required field.<br />'; } if ( !isset( $f_email_body ) || trim( $f_email_body ) == '' ) { $g_error .= 'Email Body is a required field.<br />'; } } $captcha =& new hn_captcha( $CAPTCHA_INIT ); if ( isset( $_POST['issubmit'] ) ) { switch( $captcha->validate_submit() ) { // was submitted and has valid keys case 1: // PUT IN ALL YOUR STUFF HERE // checkForm(); if ( $g_error == '' ) { $mailer = myMailer( $f_email_body, MODERATOR_MAIL, $f_contact_email, false ); $mailer->Subject = $f_subject; $mailer->From = $f_contact_email; $mailer->FromName = $f_contact_name; if ( !$mailer->Send() ) { //not ok echo "An error occurred while sending the message. Please send an email directly to vboctor -at- users -dot- sourceforge -dot- net."; $t_show_form = false; } else { //ok echo "Thanks for your message. We will reply to you shortly."; $t_show_form = false; } } break; // was submitted with no matching keys, but has not reached the maximum try's case 2: $g_error .= 'Your Captcha input is not valid.<br />Please try again.'; break; // was submitted, has bad keys and also reached the maximum try's case 3: break; // was not submitted, first entry default: $g_error .= 'Not ok. First entry.'; break; } if ( $g_error != '' ) { echo "<p>The following errors were encountered:<br /><b>$g_error</b></p>"; } } if ( $t_show_form ) { ?> <p align="left">Please use the form below to email us with any queries that you may have.</p> <p> <form name="frmAddEntry" method="post" onsubmit="return v.exec()"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" style="padding:10px;">Contact Name:</td> <td width="80%" style="padding:10px;"><input valign="top" style="width:270px;" name="contact_name" type="text" id="contact_name" value="<?php echo htmlspecialchars( $f_contact_name ); ?>"></td> </tr> <tr> <td style="padding:10px;">Email Address:</td> <td style="padding:10px;"><input valign="top" style="width:270px;" name="contact_email" type="text" id="contact_email" value="<?php echo htmlspecialchars( $f_contact_email ); ?>"></td> </tr> <tr> <td style="padding:10px;">Subject:</td> <td style="padding:10px;"><input valign="top" style="width:270px;" name="subject" type="text" id="subject" value="<?php echo htmlspecialchars( $f_subject ); ?>"></td> </tr> <tr> <td width="20%" style="padding:10px;">Body:</td> <td width="80%" style="padding:10px;"><textarea valign="top" wrap="ON" name="email_body" id="email_body" style="height:100px; width:270px; font-size:12px; margin:0; padding:0;"><?php echo htmlspecialchars( $f_email_body ); ?></textarea></td> </tr> <tr> <td style="padding:10px;"></td> <td style="padding:10px;"><?php echo $captcha->display_captcha()?><br><?php if ( isset( $captcha->msg1 ) ) { echo $captcha->msg1; } ?></td> </tr> <tr> <td style="padding:10px;">Captcha:</td> <td style="padding:10px;"><input type="text" name="private_key" value="" maxlength="5" size="5"></td> </tr> <tr> <td style="padding:10px;"> </td> <td style="padding:10px;"> <input name="admAdd" type="submit" id="admAdd" value="Submit"> <input name="issubmit" type="hidden" value="1"> </td> </tr> </table> </form> </p> <script language="JavaScript"> var o_fields = { 'contact_name':{'l':'Contact Name','r':true}, 'contact_email':{'l':'Email Address','r':true, 'f':'email'}, 'subject':{'l':'Subject','r':true}, 'email_body' : {'l':'Body','r':true}, 'private_key' : {'l':'Captcha','r':true, 'mn':5} } var v = new validator('frmAddEntry', o_fields, {'to_disable' : ['Submit'],'alert' : 1}); </script> <?php } include( 'adsense_vertical_inc.php' ); include( 'bot.php' ); ?> |