anybody hv this code?
							
						
					Pm to all club member
				
					Collapse
				
			
		
	X
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
I dont have time copy and paste this code and i dont have time to edit lavascript again. Download old retrivewap script and copy the action==pmallmember and paste to here. I will secure it 4 u. Or use if() state to secure it.
E.g
but is better to paste it here, so i will help.PHP Code:if($clubowner==$uid)
{
pm form here lol!
}els{
what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
}
 - 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
code it by ur self.. because all of us dont know the SQL fields of your database
adex3g is correct IF condition
and you put your code inside of that condition
if($clubowner==$uid)
{
// you need to use INNER JOIN sql command to combine the 2 table ibwf_private and ibwf_clubmember
mysql_query("INSERT INTO ibwf_private SET touid='".$variable."', byuid='".$clubowner."', timesend=''".time()."' ");
}els{
what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
}
Comment
 - 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
Originally posted by adex3g View PostI dont have time copy and paste this code and i dont have time to edit lavascript again. Download old retrivewap script and copy the action==pmallmember and paste to here. I will secure it 4 u. Or use if() state to secure it.
E.g
but is better to paste it here, so i will help.PHP Code:if($clubowner==$uid)
{
pm form here lol!
}els{
what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
}
Do you see what i see lolOriginally posted by leadiztah View Postcode it by ur self.. because all of us dont know the SQL fields of your database
adex3g is correct IF condition
and you put your code inside of that condition
if($clubowner==$uid)
{
// you need to use INNER JOIN sql command to combine the 2 table ibwf_private and ibwf_clubmember
mysql_query("INSERT INTO ibwf_private SET touid='".$variable."', byuid='".$clubowner."', timesend=''".time()."' ");
}els{
what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
}
Tell me whats wrong in this picture ??
What error did you both make ??
Other coders leave it upto this newbies they need to learn how to code.Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
 - 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
Ps: autopm function must be already defined in core.php :PPHP Code:// in club index add :
if($clinfo['owner'] == $uid)
echo '<a href="index.php?action=clubpm&sid='.$sid.'&clubid='.$clid.'">Pm to all members</a>';
//in index.php
else if($action == 'clubpm')
{
$clubid = (int)$_GET['clubid'];
$info = mysql_fetch_row(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clubid."'"));
addonline(getuid_sid($sid),'Admin','');
echo '<card id="main" title="club">';
echo '<p align="center">';
if($info[0] == '' || $info[0] != $uid){
echo 'This club dont exist or u arent the club owner.';
}else{
if(!isset($_POST['text']) && $_POST['text'] == ''){
echo 'Pm text: <input name="text" maxlength="30"/><br/>';
echo '<anchor>Send';
echo '<go href=\"index.php?action=clubpm&sid='.$sid.'&clubid='.$clubid.'" method="post">';
echo "<postfield name=\"text\" value=\"$(text)\"/>";
echo '</go></anchor>';
}else{
$sql = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid='".$clubid."' AND accepted='1'");
$no = 0;
while($user = mysql_fetch_assoc($sql)){
$sent = autopm(mysql_real_escape_string($_POST['text'],$user['uid']);
if($sent)$no++;
}
if($no > 0) echo 'Pm sent to '.$no.' member'.($no < 2?'':'s').'<br/>'; else echo 'Error. Try again later.';
}
}
echo '<a href="index.php?action=main&sid='.$sid.'">Home</a>';
echo '</p>';
echo '</card>';
}
PS2: This wasnt tested;))Last edited by i0nutzxp; 03.02.11, 08:02.<?php unlink('World/Europe/Romania.country'); ?>
Comment
 - 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
i think one mistake isOriginally posted by subzero View PostDo you see what i see lol
Tell me whats wrong in this picture ??
What error did you both make ??
Other coders leave it upto this newbies they need to learn how to code.
wich should bPHP Code:}els{
and another one isPHP Code:}else{
should b like thisPHP Code:action==pmallmember
is that what you mean :-?PHP Code:(action=="pmallmember")
Comment
 
Comment