/* Enjoy!!! Dino Ciuffetti - dam2k@users.sourceforge.net * * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with this program (COPYING); if not, go to http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ // This is to handle external variables (POST, GET, COOKIES) in cmsdam style require ("plugins/guestbook/external.php"); // This is to parse media requests, media serializer will be used!! if (($media != "") && (strlen($media) > 0)) { // A media was requested!! // Clean PHP output buffer to serialize a clean media and not HTML!! // I have to turn off output buffering because of a PHP bug in ob_clean()! ob_end_clean(); // Media serializer!! require ("plugins/mediaserializer/index.php"); $mediaserializer = new CmsDam_MediaSerializer; // Check for requested media in plugins/guestbook! if (file_exists("plugins/guestbook/" . $media)) // Feed the media serializer with the media request and print the result echo $mediaserializer->CmsDam_MediaSerializer_stream("plugins/guestbook/" . $media); // We finished to serialize requested media, so we say to you Good Bye!! exit(); } // END of media parsing // Begin of guestbook $proctime_start = microtime(); # Configuration and functions inclusion ################################################################################################# require ("plugins/guestbook/config.php"); $url_to_start = $cms->sections->section_uri($section, 1); // Guestbook starting address $lang_dir = "plugins/guestbook/languages"; // Language directory $loc_dir = "plugins/guestbook/locations"; // Locations directory $image_dir = $cms->sections->section_uri($section) . "&media=images"; // Image URL, we need MediaSerializer for this! $limit = array($limit_min_words, $limit_max_words); // Message limits require ("plugins/guestbook/functions.php"); if (strstr (getenv('HTTP_USER_AGENT'), 'MSIE')) { $in_field_size = "50"; $text_field_size = "31"; } else { $in_field_size = "30"; $text_field_size = "24"; } # DB Connection ################################################################################################# if (!$cms->dbms->DB_connect()) echo "DEBUG: Guestbook: DB NOT connected"; # Process ################################################################################################# if (($smiliehelp_ != "") && (strlen($smiliehelp_) > 0)) { // Smilies help was requested echo "
\n";
echo "Codice\n";
echo " | \n";
echo "\n"; echo " | \n";
echo "Nome\n";
echo " | \n";
echo "
$db[code] | \n";
echo "   | \n";
echo "$db[name] | \n";
echo "
\n";
echo"
| \n";
echo" ||||||||||||||||||||||||||||||||||||||||||||||||||||
| \n";
echo" \n"; if ($show_sysinfo) { list($usec, $sec) = explode(" ",$proctime_start); $proctime_start = $usec+$sec; list($usec, $sec) = explode(" ",microtime()); $proctime_end = $usec+$sec; $proctime = $proctime_end-$proctime_start; $cms->dbms->dbquery("SELECT id FROM " . $guestbook_tablename); $countall=$cms->dbms->dbnum_rows(); echo"\n"; } echo" | \n";
echo"
"; echo " sections->section_uri($section, 1)."&smiliehelp_=1\">$smiley_help