turnipofdoom |
02-13-2007 02:55 PM |
Well Line 31 is blank in my file so here.
for php5 and only 5.
Code:
<?php
/*======================================================================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 1/27/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*=======================================================================*/
class recruit {
private $vbObj;
function __construct()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function getStatus( $query )
{
$result = $this->vbObj->db->fetch_array(
$this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" ) );
return strip_tags( $result['status'] );
}
function setStatus( $druid,
$hunter,
$mage,
$paladin,
$priest,
$rogue,
$shaman,
$warlock,
$warrior )
{
$classes = array(
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Hunter' => $this->vbObj->db->escape_string( strip_tags( $hunter, '<b>' ) ),
'Mage' => $this->vbObj->db->escape_string( strip_tags( $mage, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'Priest' => $this->vbObj->db->escape_string( strip_tags( $priest, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>') ),
'Shaman' => $this->vbObj->db->escape_string( strip_tags( $shaman, '<b>' ) ),
'Warlock' => $this->vbObj->db->escape_string( strip_tags( $warlock, '<b>' ) ),
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
}
?>
and php4
Code:
<?php
/*======================================================================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 1/27/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*=======================================================================*/
class recruit {
var $vbObj;
function recruit()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function getStatus( $query )
{
$result = $this->vbObj->db->fetch_array(
$this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" ) );
return strip_tags( $result['status'] );
}
function setStatus( $druid,
$hunter,
$mage,
$paladin,
$priest,
$rogue,
$shaman,
$warlock,
$warrior )
{
$classes = array(
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Hunter' => $this->vbObj->db->escape_string( strip_tags( $hunter, '<b>' ) ),
'Mage' => $this->vbObj->db->escape_string( strip_tags( $mage, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'Priest' => $this->vbObj->db->escape_string( strip_tags( $priest, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>') ),
'Shaman' => $this->vbObj->db->escape_string( strip_tags( $shaman, '<b>' ) ),
'Warlock' => $this->vbObj->db->escape_string( strip_tags( $warlock, '<b>' ) ),
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
}
?>
|