335,9 → 335,9 |
*/ |
public function addDistribution($distname, $disttype, $distua = '', $distlogo = 0) { |
$result = array(); |
$sDName = $this->secure->checkStr($distname); |
$sDName = $this->secure->checkStr($distname,1); |
$sDType = $this->secure->checkInt($disttype); |
$sDUAgt = $this->secure->checkStr($distua); |
$sDUAgt = $this->secure->checkStr($distua,1); |
$sDLogo = $this->secure->checkInt($distlogo); |
|
$query = "INSERT INTO ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."'"; |
368,9 → 368,9 |
public function updateDistribution($distID, $distname, $disttype, $distua, $distlogo) { |
$result = array(); |
$sDID = $this->secure->checkInt($distID); |
$sDName = $this->secure->checkStr($distname); |
$sDName = $this->secure->checkStr($distname,1); |
$sDType = $this->secure->checkInt($disttype); |
$sDUAgt = $this->secure->checkStr($distua); |
$sDUAgt = $this->secure->checkStr($distua,1); |
$sDLogo = $this->secure->checkInt($distlogo); |
|
$query = "UPDATE ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."' WHERE dist_id='".$sDID."'"; |
438,9 → 438,9 |
public function addDistVersion($distID, $version, $vname = "", $vcodename = "") { |
$result = array(); |
$sDistID = $this->secure->checkInt($distID); |
$sDVersion = $this->secure->checkStr($version); |
$sDVName = $this->secure->checkStr($vname); |
$sDVCName = $this->secure->checkInt($vcodename); |
$sDVersion = $this->secure->checkStr($version,1); |
$sDVName = $this->secure->checkStr($vname,1); |
$sDVCName = $this->secure->checkStr($vcodename,1); |
|
$query = "INSERT INTO ".$this->prefix."version SET dist_id='".$sDistID."', vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."'"; |
$rq =& $this->db->query($query); |
469,9 → 469,9 |
public function updateDistVersion($versionID, $version, $vname = "", $vcodename = "") { |
$result = array(); |
$sVersID = $this->secure->checkInt($versionID); |
$sDVersion = $this->secure->checkStr($version); |
$sDVName = $this->secure->checkStr($vname); |
$sDVCName = $this->secure->checkInt($vcodename); |
$sDVersion = $this->secure->checkStr($version,1); |
$sDVName = $this->secure->checkStr($vname,1); |
$sDVCName = $this->secure->checkStr($vcodename,1); |
|
$query = "UPDATE ".$this->prefix."version SET vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."' WHERE version_id='".$sVersID."'"; |
$rq =& $this->db->query($query); |