View Single Post
  #8  
Old 11-30-2005, 05:10 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks tyler and michelle for the help

Having a little bit more of an issue

Code:
<?
chdir('/home/httpd/vhosts/httpdocs/Forum'); 
require_once('./global.php');

?> <? echo $style['css']; ?>
<center><body bgcolor="alt1">
</head>
<!--BEGIN WORD FILTER JAVASCRIPT--> 
<script language="JavaScript"> 
// Word Filter 2.0 
// (c) 2002 Premshree Pillai 
// Created : 29 September 2002 
// http://www.qiksearch.com 
// http://javascript.qik.cjb.net 
// E-mail : qiksearch@rediffmail.com 

var swear_words_arr=new Array("www","http://"); 
var swear_alert_arr=new Array(); 
var swear_alert_count=0; 

function reset_alert_count() 
{ 
swear_alert_count=0; 
} 

function wordFilter(form,fields) 
{ 
   reset_alert_count(); 
   var compare_text; 
   var fieldErrArr=new Array(); 
   var fieldErrIndex=0; 
   for(var i=0; i<fields.length; i++) 
   { 
      eval('compare_text=document.' + form + '.' + fields[i] + '.value;'); 
      for(var j=0; j<swear_words_arr.length; j++) 
      { 
         for(var k=0; k<(compare_text.length); k++) 
         { 
            if(swear_words_arr[j]==compare_text.substring(k,(k+swear_words_arr[j].length)).toLowerCase()) 
            { 
               swear_alert_arr[swear_alert_count]=compare_text.substring(k,(k+swear_words_arr[j].length)); 
               swear_alert_count++; 
               fieldErrArr[fieldErrIndex]=i; 
               fieldErrIndex++; 
            } 
         } 
      } 
   } 
   var alert_text=""; 
   for(var k=1; k<=swear_alert_count; k++) 
   { 
      alert_text+="\n" + "(" + k + ")  " + swear_alert_arr[k-1]; 
      eval('compare_text=document.' + form + '.' + fields[fieldErrArr[0]] + '.focus();'); 
      eval('compare_text=document.' + form + '.' + fields[fieldErrArr[0]] + '.select();'); 
   } 
   if(swear_alert_count>0) 
   { 
      alert("Sorry You cant ad this request: found:\n_______________________________\n" + alert_text + "\n_______________________________"); 
      return false; 
   } 
   else 
   { 
      return true; 
   } 
} 
</script> 
<!--END WORD FILTER JAVASCRIPT-->
<body topmargin="0" leftmargin="0" bgcolor="alt2">
<? echo $style['css']; ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr><td valign="top">

<table border="0" width="100%" bgcolor="tcat" cellspacing="1" cellpadding="3">
  <tr>
    <td width="1%"></td>
    <td width="99%"><p class="bodycopy"><font color="#FFFFFF"><b>Your request has sucessfully
    been delivered to the DJ application and should play shortly.</b></font></td>
  </tr>
</table>

<table border="0" width="100%" cellspacing="4" cellpadding="4" bgcolor="alt2">
  <tr>
    <td valign="top" align="center"><table border="0" cellpadding="2">

	
<? if($song["haspicture"]){?>
      <tr>
        <td valign="top" align="center">

<br>    </td>
      </tr>
<?}?>	  
	  
      <tr>
        <td valign="top" align="center">
		
		</td>
      </tr>
    </table>
	
    </td>
    <td valign="top" width="99%"><div align="center"><center>
	<table border="0" cellspacing="0"
    cellpadding="3">
	<tr><td colspan=2><font size=2><b>Song information</b></font></td></tr>
      <tr>
        <td><p class="bodycopy">Artist</td>
        <td><p class="bodycopy"><? echo $song["artist"]; ?></td>
      </tr>
      <tr>
        <td><p class="bodycopy">Title</td>
        <td><p class="bodycopy"><? echo $song["title"]; ?></td>
      </tr>
      <tr>
        <td><p class="bodycopy">Album</td>
        <td><p class="bodycopy"><? echo $song["album"]; ?></td>
      </tr>
      <tr>
        <td><p class="bodycopy">Buy CD</td>
        <td align="center"><p class="bodycopy"><a href="<? echo $song['buycd']; ?>" target="_blank">Buy Cd</a></td>
      </tr>
      
    </table>
    </center></div></td>
    <td valign="top">
<?
 if($dedicated)
   require("req/dedication.info.html");
 else
   require("req/dedication.form.php");
?>

</td></tr>
</table>
</td></tr></table>
</body>
</html>
chdir('/home/httpd/vhosts/httpdocs/Forum');
require_once('./global.php');
when i throw that in it completely kills the page after the call to the global
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01354 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete