fullyloaded
-
Posts
133 -
Joined
-
Last visited
Never
Posts posted by fullyloaded
-
-
hi
is there away to click on any text on a page and have it add that text to a text box? so if i click on the word (phpfreaks) it will add it to a text box thanks
-
hi
i want to insert it into (users) and into table (emails) thanks
-
hi
if i wanted to insert something to my database will the code be like this?
$email2=$_POST['email2']; $tbl_name=users; $sql="INSERT FROM $tbl_name WHERE email='$email2'"; $result=mysql_query($sql)
-
cool thanks a lot you guys
-
hi
i was wondering if anyone can tell me of a place to get a ip banning script that will save the ips to a text file or to the database and also have it so i can add the ip from a text box thanks
-
hi
i hope its ok to post this question here if not sorry does anyone know where to get a php script that i can put on my site so if some one views my site it will tell me what page they viewed and also tell me how many hits and some info on the guest like ip browser type and so on thanks
-
hi
i know your not here to write code for people what im trying to do is add a delete button so i can select a member and delete it if i want thanks
-
hi
i have this code for my site that will connect to my database and grab all my members there id email and ip the problem is that it dont have a button where you can select a member and delete that member can anyone help me with this?i want to add a button and a check box so if i check off a member and click a delete button it will delete that member here is the code thanks
<?php mysql_connect("localhost", "name", "pass") or die("could not connect"); mysql_select_db("name"); //Set the page size $PageSize = 10; $StartRow = 0; //Set the page no if(empty($_GET['PageNo'])){ if($StartRow == 0){ $PageNo = $StartRow + 1; } }else{ $PageNo = $_GET['PageNo']; $StartRow = ($PageNo - 1) * $PageSize; } //Set the counter start if($PageNo % $PageSize == 0){ $CounterStart = $PageNo - ($PageSize - 1); }else{ $CounterStart = $PageNo - ($PageNo % $PageSize) + 1; } //Counter End $CounterEnd = $CounterStart + ($PageSize - 1); ?> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="include/style.css" type="text/css"> </head> <?php $TRecord = mysql_query("SELECT * FROM members"); $result = mysql_query("SELECT * FROM members ORDER BY id LIMIT $StartRow,$PageSize"); //Total of record $RecordCount = mysql_num_rows($TRecord); //Set Maximum Page $MaxPage = $RecordCount % $PageSize; if($RecordCount % $PageSize == 0){ $MaxPage = $RecordCount / $PageSize; }else{ $MaxPage = ceil($RecordCount / $PageSize); } ?> <body class="UsePageBg"> <table width="100%" border="0" class="InternalHeader"> <tr> <td width="24%">List of Members</td> <td width="76%"> <div align="right"> <?php print "$RecordCount record(s) founds - You are at page $PageNo of $MaxPage" ?></div> </td> </tr> </table> <br> <table width="100%" border="0" class="NormalTableTwo"> <tr> <td class="InternalHeader" width="4%"> <p align="center">Id</td> <td class="InternalHeader" width="36%"> <p align="center">User</td> <td class="InternalHeader" width="20%"> <p align="center">Email</td> <td class="InternalHeader" width="20%"> <p align="center">Ip</td> </tr> <?php $i = 1; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $bil = $i + ($PageNo-1)*$PageSize; ?> <tr> <td class="NormalFieldTwo" width="4%"><?php echo $bil ?></td> <td class="NormalFieldTwo" width="20%"><?php echo $row[1] ?></td> <td class="NormalFieldTwo" width="20%"><?php echo $row[2] ?></td> <td class="NormalFieldTwo" width="20%"><?php echo $row[5] ?></td> </tr> <?php $i++; }?> </table><br> <table width="100%" border="0" class="InternalHeader"> <tr> <td> <div align="center"> <?php //Print First & Previous Link is necessary if($CounterStart != 1){ $PrevStart = $CounterStart - 1; print "<a href=staffList.php?PageNo=1>First </a>: "; print "<a href=staffList.php?PageNo=$PrevStart>Previous </a>"; } print " [ "; $c = 0; //Print Page No for($c=$CounterStart;$c<=$CounterEnd;$c++){ if($c < $MaxPage){ if($c == $PageNo){ if($c % $PageSize == 0){ print "$c "; }else{ print "$c ,"; } }elseif($c % $PageSize == 0){ echo "<a href=staffList.php?PageNo=$c>$c</a> "; }else{ echo "<a href=staffList.php?PageNo=$c>$c</a> ,"; }//END IF }else{ if($PageNo == $MaxPage){ print "$c "; break; }else{ echo "<a href=staffList.php?PageNo=$c>$c</a> "; break; }//END IF }//END IF }//NEXT echo "] "; if($CounterEnd < $MaxPage){ $NextPage = $CounterEnd + 1; echo "<a href=staffList.php?PageNo=$NextPage>Next</a>"; } //Print Last link if necessary if($CounterEnd < $MaxPage){ $LastRec = $RecordCount % $PageSize; if($LastRec == 0){ $LastStartRecord = $RecordCount - $PageSize; } else{ $LastStartRecord = $RecordCount - $LastRec; } print " : "; echo "<a href=staffList.php?PageNo=$MaxPage>Last</a>"; } ?> </div> </td> </tr> </table> <?php mysql_free_result($result); mysql_free_result($TRecord); ?> </body> </html>
-
hi
i was wondering if anyone knew how to connect to a database and view a table in php what im trying to do is have a php file that will connect to my database and show the info in a table and also have a button to delete a row in the table
-
hi i was wondering if there was anyway to change this bit of code so it will check and see if a email address is in the database i want to take out the member_id part and have it look for only the email address
} elseif(!$allowed_email[$ld['email']]) { $this->dbu->query("select member_id from ban_emails where email='".$ld['email']."'"); if($this->dbu->move_next()) { $ld['error'].="This email address is banned."."<br>"; $is_ok=false; } }
and here is the sql code im trying to get to work but dont know if its right
-- -- Table structure for table `ban_emails` -- CREATE TABLE `ban_emails` ( `email` varchar(255) NOT NULL default '', ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ban_emails` -- INSERT INTO `ban_emails` VALUES (my@emailaddress.com);
-
hi
its a dating software script thats why i payed for the script and i'm not the best at php or sql but i'm really good at vb lol witch wont help me here thanks for the reply
-
hi can anyone please help me?i have a dating website that will get some spammers so when some one like this joins and i find out i will delete the account and block the ip but most of the time its a router ip so its kind of hard to do what im trying to do is add a table in the database with the list of emails used to spam so if this person signs up again using the same email it will check to see if this email is in the talble and say its band lol hope you know what im talking about thanks...
-
hi
anyone know where i can get a script that can upload a video to my site and then play the video?thanks ???
-
hi here you go
<iframe src="read.php#bot" name="read" width="63%" height="30%"></iframe> <form method="POST" action="say.php" target="read"> <input name="name" value="Your Name" onclick="this.value=''"><br> <input name="url" value="Your Website" onclick="this.value=''"><br> <input name="comment" value="Your Message" onclick="this.value=''"><br> <input type="submit" value="punch it" style="font-size: 10px"><input type="button" onclick="read.location=read.location" value="Refresh" style="font-size: 10px"> </form>
<?php $file = "shout.dat"; $open = fopen($file, "a"); $name = $_POST['name']; $comment= $_POST['comment']; $url = $_POST['url']; if($name != "" || $comment != "") { if($url != ""){ fwrite($open, "<b><a href='$url'>$name</a></b>>>");} else{fwrite($open, "$name>>"); } fwrite($open, "$comment<hr>"); } echo "<script>window.location='read.php#bot'</script>"; ?>
-
hi
ok there is 3 textbox one where you put your name 2 website 3 message now the one for your name i want to take the textbox out and have just a name and leave the other 2 textboxes the way they are
-
hi
i have this shoutbox im trying to edit what i want to do is change this bit of code so the textbox for your name is not a text box but just the name and still work lol hope you know what im talking about and also im trying to ad smileys to it any idea how thanks
<input name="name" value="Your Name" onclick="this.value=''">
<?php $file = "shout.dat"; $open = fopen($file, "a"); $name = $_POST['name']; $comment= $_POST['comment']; $url = $_POST['url']; if($name != "" || $comment != "") { if($url != ""){ fwrite($open, "<b><a href='$url'>$name</a></b>>>");} else{fwrite($open, "$name>>"); } fwrite($open, "$comment<hr>"); } echo "<script>window.location='read.php#bot'</script>"; ?>
-
hi
i want to add french german etc..language to my site but dont have and idea what to do or where to start will this be a big job to do?and info would be great thanks -
hi ok thanks for your help ;D
-
hi
i was wondering if there is any easy way to get some ones external ip when there on my site?reason when a member sites up to my site now it will give me there ip but not there external one i want this because some of the people that signup spam other members on my site and when i block the ip witch is a router ip they some how change it here is one string of code if it helps in anyway thanks
[code]$ip = $_SERVER['REMOTE_ADDR'];[/code] -
hi
i have a script on my site that will let people email other members is there anyway i can have a timer on it so after some one sends a message they will have to wait 1 minute to send another message? -
hi
i have this word filter in php witch works fine but my site is using php with html templates so when i try to use this word filter in my site it wont work any idea how i can get this to work in my site?
word filter code:
[code]<?
$badword = $_POST['badword'];
function filter($string){
$badwords = array("@yahoo.com", "@hotmail.com");
$filtered = str_replace($badwords, "****", $string);
return $filtered;
}
$filteredtext = filter($badword);
if (!$filteredtext) {
echo "You did not enter a sentence";
}else{
echo"$filteredtext";
}
?> [/code]
php code for my site:
[code]<?php
/************************************************************************
* @Author: Tinu Coman *
************************************************************************/
$ft = new ft(ADMIN_PATH.MODULE."templates/");
$ft->define( array(main => "members_list.html"));
$ft->define_dynamic('member_row','main');
$l_r=ROW_PER_PAGE;
$time_stamp = mktime ( date("H"), date("i")-ONLINE_TIMEOUT, date("s"), date("m"), date("d"), date("Y") );
if(($glob['ofs']) || (is_numeric($glob['ofs'])))
{
$glob['offset']=$glob['ofs'];
}
if((!$glob['offset']) || (!is_numeric($glob['offset'])))
{
$offset=0;
}
else
{
$offset=$glob['offset'];
}
$arguments="";
$filter='';
if($glob['imageField_x'])
{
$_SESSION['s_g']=$glob['s_g'];
$_SESSION['ssy']=$glob['ssy'];
$_SESSION['esy']=$glob['esy'];
$_SESSION['country']=$glob['country'];
$_SESSION['photo']=$glob['photo'];
$_SESSION['st_online']=$glob['st_online'];
}
if($glob['s_g'])
{
$filter.=" and gender='".$glob['s_g']."'";
}
if($glob['ssy'])
{
$year=date("Y")-$glob['ssy'];
$filter.=" and birthdate <= '".$year."-1-1"."'";
}
if($glob['esy'])
{
$year=date("Y")-$glob['esy'];
$filter.=" and birthdate >= '".$year."-12-31"."' ";
}
if($glob['country'])
{
$filter.=" and country = '".$glob['country']."'";
}
if($glob['photo'])
{
$filter.=" and picture != 'NULL'";
}
if($glob['st_online'])
{
$filter.=" and action >= '".$time_stamp."'";
}
$dbu=new mysql_db;
$dbu->query("SELECT distinct
action, username, gender, thumb, member_id, city, country, headline, birthdate, publish_photo, password_protect
FROM member WHERE active1='1' AND active2='1' AND visible='2' ".$filter." ORDER BY username");
$max_rows=$dbu->records_count();
$ft->assign("ROWS", $max_rows);
$dbu->move_to($offset);
$i=0;
while($dbu->move_next()&&$i<$l_r)
{
if($dbu->f('member_id')==$_SESSION[U_ID])
{
$me=true;
}
else
{
$me=false;
}
list($b_year,$b_month,$b_day )=split("-",$dbu->f('birthdate'));
$age=get_age($b_month,$b_day,$b_year);
$description=$dbu->f('headline');
$ft->assign('DESCRIPTION', get_safe_text($description));
$ft->assign('THUMBNAIL_WIDTH', THUMBNAIL_WIDTH);
$ft->assign('USERNAME',$dbu->f('username'));
$ft->assign('COUNTRY',$dbu->f('country'));
$ft->assign('CITY',$dbu->f('city'));
$ft->assign('AGE',$age);
$ft->assign('READ_LINK',"index.php?pag=member_profile&pagold=members_list&member_id=".$dbu->f('member_id'));
//********begin get thumbnail code****
$picture = get_thumbnail($dbu->f('thumb'),$dbu->f('password_protect'), $dbu->f('publish_photo'), $dbu->f('member_id'), $_SESSION[U_ID], $me );
$ft->assign('PICTURE', $script_path.UPLOAD_PATH.$picture);
//********end get thumbnail code****
if($dbu->f('action') > $time_stamp )
{
$st=1;
$ft->assign('ST','<font color="#ff0000">online</font>');
}
else
{
$st=0;
$ft->assign('ST',"offline");
}
if($st)
{
$ft->assign("IM_LINK",'<a href="'."javascript:po13('../chat/index_blank.php?pag=chat&member_id=".$dbu->f('member_id')."', '".$dbu->f('member_id')."')".'" class="LinkStyle1"> Invite For Chat </a>');
$ft->assign('S_IM',"");
$ft->assign('E_IM',"");
}
else
{
$ft->assign('IM_LINK','#');
$ft->assign('S_IM',"<!--");
$ft->assign('E_IM',"-->");
}
if($dbu->f('member_id')==$_SESSION[U_ID])
{
$ft->assign('S_IM',"<!--");
$ft->assign('E_IM',"-->");
}
if($dbu->f('member_id') == $_SESSION[U_ID])
{
$ft->assign('MESSAGE_LINK',"index.php?pag=view_profile");
}
else
{
$ft->assign('MESSAGE_LINK',"index.php?pag=message_add&pagold=members_list&receiver_id=".$dbu->f('member_id'));
}
$i++;
if($i % 2 == 1)
{
$ft->assign('BG_COLOR',"#EEEEEE");
}
else
{
$ft->assign('BG_COLOR',"#FFFFFF");
}
$ft->parse('member_ROW_OUT','.member_row');
}
if($offset>=$l_r)
{
$ft->assign('BACKLINK',"<a class=\"LinkStyle1\" href=\"index.php?pag=members_list&offset=".($offset-$l_r).$arguments."\">Prev ".ROW_PER_PAGE."</a>");
}
else
{
$ft->assign('BACKLINK','');
}
if($offset+$l_r<$max_rows)
{
$ft->assign('NEXTLINK',"<a class=\"LinkStyle1\" href=\"index.php?pag=members_list&offset=".($offset+$l_r).$arguments."\">Next ".ROW_PER_PAGE."</a>");
}
else
{
$ft->assign('NEXTLINK','');
}
if(!$i)
{
unset($ft);
return get_error_message("There are no Profiles that match your search criteria.");
}
$ft->assign('PAG_DD',get_pagination_dd($offset, $max_rows, $l_r));
$ft->assign('PAGE_TITLE',"List Of Members");
$ft->assign('MESSAGE',$glob['error']);
$ft->parse('content','main');
$ft->clear_dynamic('content','member_row');
//$ft->fastprint(content);
return $ft->fetch('content');
?> [/code]
template code:
[code]</head>
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12"><img src="../images/bul_arrow_g.gif" border="0"></td>
<td class=WhiteSlim12> <b> Search Results - {ROWS} Members</b> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3">
<p align="center"> </td>
</tr>
<tr>
<td width="10"><img src="../img/spacer.gif" border="0" width="1" height="1"></td>
<td width="500"> <table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font color="red" size=-1>{MESSAGE}</font></td>
</tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2><img src="../img/spacer.gif" border="0" width="1" height="10"></td>
</tr>
<tr>
<td colspan=2> <table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4" background="../img/line_spacer.jpg"><img src="../img/spacer.gif" width="1" height="1"></td>
</tr>
<!-- BEGIN DYNAMIC BLOCK: member_row -->
<tr>
<td height="18" width="1" bgcolor="{BG_COLOR}"> </td>
<td class="BlackSlim11" bgcolor="{BG_COLOR}" colspan="3"> <table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" align="center" class=GraySlim11><a href="{READ_LINK}"><img src="{PICTURE}" width="{THUMBNAIL_WIDTH}" border="1" vspace="3" hspace="3" style="border-color: #000000"></a><br>
{ST}</td>
<td align="left" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=BlackSlim11><b> {USERNAME}</b> </td>
</tr>
<tr>
<td class=BlackSlim11><b>Age</b> : {AGE}</td>
</tr>
<tr>
<td class=BlackSlim11><b>Location:</b> {COUNTRY} / {CITY}</td>
</tr>
<tr>
<td class=BlackSlim11>{DESCRIPTION} </td>
</tr>
<tr>
<td class=BlackSlim11><a href="{READ_LINK}" class=LinkStyle1>View Profile</a></td>
</tr>
<tr>
<td class=BlackSlim11><a href="{MESSAGE_LINK}" class=LinkStyle1>Send Private Message</a></td>
</tr>
{S_IM}
<tr>
<td class=BlackSlim11>{IM_LINK}</td>
</tr>
{E_IM}
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" background="../img/line_spacer.jpg"><img src="../img/spacer.gif" width="1" height="1"></td>
</tr>
<!-- END DYNAMIC BLOCK: member_row -->
</table></td>
</tr>
<tr>
<td colspan=2><img src="../img/spacer.gif" border="0" width="1" height="8"></td>
</tr>
<tr>
<td class="BlackSlim11" colspan=2>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180" align="right" valign="top">{BACKLINK}</td>
<td width="140" align="center" valign="top" class="BlackSlim11">
<form name="pagination" method="post" action="index.php">
<input type="hidden" name="pag" value="members_list">
{PAG_DD}
</form></td>
<td width="180" align="left" valign="top">{NEXTLINK}</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="10"><img src="../img/spacer.gif" border="0" width="1" height="1"></td>
</tr>
</table> [/code] -
hi
i was wondering if anyone can help?i have a dating website with chat invite for members that are online so if 2 members are online i can invite the other one to have a private chat the thing is they will not get any popups saying they have a chat invite they have to keep checking a page to see if anyone invite them to chat do i need asp for this to work or can it be done with out asp?thanks -
anyone no how to do this its the last thing ineed done for this? ???
-
hi
i was wondering if anyone can help me out with this watermark script my problem is that the png image is resizing with all my images i have to watermark in the folder here is 2 link so you can see what im talking about im trying to get it so it will stay one size and not strech thanks....
Link 1:
[url=http://www.singlespleasures.com/member/index.php?pag=member_profile&member_id=280]http://www.singlespleasures.com/member/index.php?pag=member_profile&member_id=280[/url]
Link 2:
[url=http://www.singlespleasures.com/member/index.php?pag=member_profile&member_id=3]http://www.singlespleasures.com/member/index.php?pag=member_profile&member_id=3[/url]
Watermark code:
[code]<?
// IMAGE WATERMARK (comment line below if you do not want to use image watermark)
Define('WATERMARK_IMAGE', './wt.png'); // path to watermark image
Define('WATERMARK_PERCENT', '100'); // Intensity of the transition (in percent)
// TEXT WATERMARK (comment line below if you do not want to use text)
//Define('WATERMARK_TEXT', 'SinglesPleasures.com'); // text to place (image will not be used)
//Define('WATERMARK_TEXT_FONT', '4'); // font 1 / 2 / 3 / 4 / 5
// Define('TEXT_SHADOW', '0'); // 1 - yes / 0 - no
//Define('TEXT_COLOR', '#FFFFFF'); // text color
// GENERAL SETTINGS
Define('WATERMARK_ALIGN_H', 'right'); // left / right / center
Define('WATERMARK_ALIGN_V', 'bottom'); // top / bottom / center
Define('WATERMARK_MARGIN', '0'); // margin
// ----------------------------------------------------------------------------------------
$dr=preg_replace('/modify\.php.+/', '', $_SERVER['PHP_SELF']);
$filename=str_replace($dr, './', $_SERVER['PATH_INFO']);
$lst=GetImageSize($filename);
$image_width=$lst[0];
$image_height=$lst[1];
$image_format=$lst[2];
if ($image_format==1) {
Header("Content-Type:image/gif");
readfile($filename);
exit;
} elseif ($image_format==2) {
$old_image=imagecreatefromjpeg($filename);
} elseif ($image_format==3) {
$old_image=imagecreatefrompng($filename);
} else {
readfile($filename);
exit;
}
if (Defined('WATERMARK_TEXT') && WATERMARK_TEXT!='' && ($image_height>192 || $image_width>192)) {
// text
$color = eregi_replace("#","", TEXT_COLOR);
$red = hexdec(substr($color,0,2));
$green = hexdec(substr($color,2,2));
$blue = hexdec(substr($color,4,2));
$text_color = imagecolorallocate ($old_image, $red, $green, $blue);
$text_height=imagefontheight(WATERMARK_TEXT_FONT);
$text_width=strlen(WATERMARK_TEXT)*imagefontwidth(WATERMARK_TEXT_FONT);
$wt_y=WATERMARK_MARGIN;
if (WATERMARK_ALIGN_V=='top') {
$wt_y=WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_V=='bottom') {
$wt_y=$image_height-$text_height-WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_V=='center') {
$wt_y=(int)($image_height/2-$text_height/2);
}
$wt_x=WATERMARK_MARGIN;
if (WATERMARK_ALIGN_H=='left') {
$wt_x=WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_H=='right') {
$wt_x=$image_width-$text_width-WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_H=='center') {
$wt_x=(int)($image_width/2-$text_width/2);
}
if (TEXT_SHADOW=='1') {
imagestring($old_image, WATERMARK_TEXT_FONT, $wt_x+1, $wt_y+1, WATERMARK_TEXT, 0);
}
imagestring($old_image, WATERMARK_TEXT_FONT, $wt_x, $wt_y, WATERMARK_TEXT, $text_color);
}
if (Defined('WATERMARK_IMAGE') && WATERMARK_IMAGE!='' && ($image_height>192 || $image_width>192)) {
// image
$lst2=GetImageSize(WATERMARK_IMAGE);
$image2_width=$lst2[0];
$image2_height=$lst2[1];
$image2_format=$lst2[2];
if ($image2_format==2) {
$wt_image=imagecreatefromjpeg(WATERMARK_IMAGE);
} elseif ($image2_format==3) {
$wt_image=imagecreatefrompng(WATERMARK_IMAGE);
}
if ($wt_image) {
$wt_y=WATERMARK_MARGIN;
if (WATERMARK_ALIGN_V=='top') {
$wt_y=WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_V=='bottom') {
$wt_y=$image_height-$image2_height-WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_V=='center') {
$wt_y=(int)($image_height/2-$image2_height/2);
}
$wt_x=WATERMARK_MARGIN;
if (WATERMARK_ALIGN_H=='left') {
$wt_x=WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_H=='right') {
$wt_x=$image_width-$image2_width-WATERMARK_MARGIN;
} elseif (WATERMARK_ALIGN_H=='center') {
$wt_x=(int)($image_width/2-$image2_width/2);
}
imagecopymerge($old_image, $wt_image, $wt_x, $wt_y, 0, 0, $image2_width, $image2_height, WATERMARK_PERCENT);
}
}
if ($image_format==2) {
imageJpeg($old_image);
}
if ($image_format==3) {
imagePng($old_image);
}
?> [/code]
[SOLVED] redirect
in PHP Coding Help
Posted
hi
any one know how to add a redirect to this little bit of script? its for banning ip's as of now it will only show this (You have been banned from viewing this website.)
thanks