Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
msimonds
Regular
Regular


Joined: Jul 15, 2003
Posts: 56
Location: Dallas

PostPosted: Mon Jul 19, 2004 3:15 pm Reply with quote

I am trying to write a modification so that each forum used by forum_id has its own meta description. I am not getting any results and would like to see if anyone could help me out. Here is the meta.php that I have been working on!

Quote:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* Only registered users can see links on this board! Get registered or login! */
/* */
/* 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; either version 2 of the License. */
/************************************************************************/

if (eregi("meta.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}

##################################################
# Include for Meta Tags generation #
##################################################
global $phpbb_root_path, $nuke_root_path, $nuke_file_path, $php_root_dir, $module_name, $nukename, $pass, $nukename, $sitename;
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset="._CHARSET."\">\n";
echo "<META HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">\n";
echo "<META NAME=\"RESOURCE-TYPE\" CONTENT=\"DOCUMENT\">\n";
echo "<META NAME=\"DISTRIBUTION\" CONTENT=\"GLOBAL\">\n";
echo "<META NAME=\"AUTHOR\" CONTENT=\"$sitename\">\n";
echo "<META NAME=\"COPYRIGHT\" CONTENT=\"Copyright (c) 2004 by $sitename\">\n";
require_once("/home/enginyr/public_html/club/modules/Forums/nukebb.php");
if($module_name=="Forums"){
$sql = "SELECT forum_name FROM ".$prefix."_bbforum WHERE forum_id='$f'";
switch($f){
case 1:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"General Discussion\">\n";
break;
case 2:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Classfieds\">\n";
break;
case 3:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Los Angeles Meets\">\n";
break;
case 4:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Seattle Meets\">\n";
break;
case 5:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Install instructions\">\n";
break;
case 6:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Off topic\">\n";
break;
case 8:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"IS300\">\n";
break;
case 9:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"GS300\">\n";
break;
case 10:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"RX300\">\n";
break;
case 11:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"LS400\">\n";
break;
case 12:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"ES300\">\n";
break;
case 13:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"SC300\">\n";
break;
case 14:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Thanks\">\n";
break;

}

}else{
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Join Lexus Clubs Lextasy. Club Lextacy is where you can go to ask questions about the latest aftermarket parts for your Lexus RX300 ES300 IS300 GS300 GS400 or GS430 Los angeles Lexus club, lexus forum, lexus club, is300 forum, gs400 club, aftermarket parts accessories forum, club lextasy, clublextasy, lextasy, lextacy\">\n";
}
echo "<META NAME=\"ROBOTS\" CONTENT=\"INDEX, FOLLOW\">\n";
echo "<META NAME=\"REVISIT-AFTER\" CONTENT=\"1 DAYS\">\n";
echo "<META NAME=\"RATING\" CONTENT=\"GENERAL\">\n";

###############################################
# DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE! #
# YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS. #
###############################################

echo "<META NAME=\"GENERATOR\" CONTENT=\"PHP-Nuke $Version_Num - Copyright 2003 by Only registered users can see links on this board! Get registered or login!">\n";

?>


can anyone please take a look at it! I would really appreciate the help


Thanks
Mike
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©