Correct WML

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

33 replies · 1,337 views · started 16 years ago · 1 min read

6 participants
thanatos Senior · 261 posts #22

See u made it

 echo "</p">;

the right way is this..

echo "</p>";

ur really not observing

bOrN2pwn Developer · 230 posts #23

Here's the snippet I see no error....

else if($action=="prvtall2")

{
 echo "<card id=\"main\" title=\"Owner Tools\">";
echo "<p align=\"center\">";

     echo "</p>";
$who = mysql_real_escape_string( $_REQUEST["who"] );
$pmtou1 = mysql_real_escape_string( $_REQUEST["pmtou1"] );
$byuid = getuid_sid($sid);

$tm = microtime(get_as_float);

if($who=="online")
{
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
echo "<p>";
echo "<img src=\"../images/check.png\" alt=\"x\"/>";
echo "The Online Members have been sent This Message<br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\">»Owner Tools</a>";

$pms = mysql_query("SELECT userid FROM ibwf_online ");
$tm = microtime(get_as_float);
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/][i]This message was sent to all online members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");

}
echo "</p>";
 echo "</card>";
}

}

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

thanatos Senior · 261 posts #24

Mate im not using PC and ur giving me a headache. i'll go now.. someone else will help u..

WereWolveZ Developer · 51 posts #26
echo "message: <input name=\"pmtoul\" maxlength=\"60\"/><br/>";
   
echo "select **** haha:<br/><select name=\"who\">";
echo "<option value=\"online\">to members</option>";
  /////echo "<option value=\"2\">to staffs</option>";///////u can add this if u want to add some options to send
 
echo "</select><br/>";
    echo "<anchor>SUBMIT";
echo "<go href=\"ownrproc.php?action=prvtall2&sid=$sid\" method=\"post\">";
         echo "<postfield name=\"pmtoul\" value=\"$(pmtoul)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor><br/>-----<br/>";

just edit this man i made it for you....

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

Vayne Developer · 106 posts #28

post

echo mysql_error();

to see more...

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

WereWolveZ Developer · 51 posts #29
else if($action=="prvtall2")

{
 echo "<card id=\"main\" title=\"Owner Tools\">";
echo "<p align=\"center\">";

     echo "</p>";

$who = mysql_real_escape_string($_POST["who"] );
$pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );
$who = mysql_real_escape_string($_GET["who"] );///if not working try to delete this mate
$byuid = getuid_sid($sid);

$tm = microtime(get_as_float);

if($who=="online")
{
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
echo "<p>";
echo "<img src=\"../images/check.png\" alt=\"x\"/>";
echo "The Online Members have been sent This Message<br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\">»Owner Tools</a>";

$pms = mysql_query("SELECT userid FROM ibwf_online ");
$tm = microtime(get_as_float);
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/][i]This message was sent to all online members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");

}
echo "</p>";
 echo "</card>";
}

}

here you GO mate

//////////////////////////PM 2 ALL 
else if($action=="toall") 
{ 
addonline(getuid_sid($sid),"Owner Tools",""); 
  echo "<card id=\"main\" title=\"Owner Tools\">"; 
  echo "<p align=\"center\">"; 
  echo "<b>Owner Tools</b>"; 
  echo "</p>"; 
  echo "message: <input name=\"pmtou1\" maxlength=\"60\"/><br/>";
   
echo "pm to:<br/><select name=\"who\">";
echo "<option value=\"online\">to members</option>";
  /////echo "<option value=\"2\">to staffs</option>";///////u can add this if u want to add some options to send
 
echo "</select><br/>";
    echo "<anchor>SUBMIT";
echo "<go href=\"ownrproc.php?action=prvtall2&sid=$sid\" method=\"post\">";
         echo "<postfield name=\"pmtou1\" value=\"$(pmtou1)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor><br/>-----<br/>";

echo "<p>"; 
echo "<a href=\"index.php?action=main&sid=$sid\">»Main Menu</a>"; 
echo "</p></card>"; 
   

} 

BTW mate u can use this in xhtml

$who = mysql_real_escape_string($_REQUEST["who"] ); 
$pmtou1 = mysql_real_escape_string($_REQUEST["pmtou1"] );

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

thanatos Senior · 261 posts #30

I see u use REQUEST but ur go href method is POST. i think REQUEST is different from POST 😉

WereWolveZ Developer · 51 posts #32

yep so i add this

$who = mysql_real_escape_string($_POST["who"] ); $pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );

i think "request" is in xhtml

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

GumSlone Administrator Principal · 1,690 posts #33

WereWolveZ wrote: yep so i add this

$who = mysql_real_escape_string($_POST["who"] ); $pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );

i think "request" is in xhtml

no its not xhtml, you can do this with request:

$who = mysql_real_escape_string($_REQUEST["who"] ); 
$pmtou1 = mysql_real_escape_string($_REQUEST["pmtou1"] );

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

wap2k Developer · 168 posts #34

Your form in full working order use $_POST["pmtou1"] and $_POST["who"] to retrieve the fields it will work 🙂. The $_REQUEST also has access to cookies.

else if($action=="toall")
{
addonline(getuid_sid($sid),"Owner Tools","");
echo "<card id=\"main\" title=\"Owner Tools\">";
echo "<p align=\"center\">";
echo "<b>Owner Tools</b>";
echo "</p><p>";
echo "Message: <input name=\"pmtou1\" maxlength=\"250\"/><br/>";
echo "Recipient:"; 
echo "<select name=\"who\" multiple=\"false\">";
echo "<option value=\"online\">Online Members Only</option>";
echo "</select><br/>";
echo "</p><p align=\"center\">";
echo "<anchor>Update";
echo "<go href=\"ownrproc.php?action=prvtall2&sid=$sid\" method=\"post\">";
echo "<postfield name=\"pmtou1\" value=\"$(pmtou1)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</card>";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close