-
✘✘✘ WIBUHAX0R1337 ✘✘✘
-
✘
PATCH :
/
var
/
www
/
clients
/
client4
/
web4
/
web
/
ris
/
includes
/
lib
/
Upload File:
files >> /var/www/clients/client4/web4/web/ris/includes/lib/Application.class.php
<? class Application { var $dircategory = array(); var $categoryid = ""; function showSubCategory($oid, $blink=true, $url='main.php?url=product_list') { global $g_db; $sql = "SELECT * FROM tbl_category WHERE ID='".$oid."'"; $row = $g_db->getObject($sql); $arr = array(); $arr[] = $row->ID; $arr[] = $row->Title; $this->dircategory[] = $arr; if ($row->ParentID != 0) { $this->showSubCategory($row->ParentID, $blink); }else{ for ($i=(count($this->dircategory)-1); $i>-1; $i--) { $cat = $this->dircategory[$i]; if ($cat[0] != '') { if ($blink) { $html .= " > <a href=\"".$url."&cat_id=".$cat[0]."\">".$cat[1]."</a>"; }else{ $html .= " > ".$cat[1]; } } } $this->dircategory = array(); print $html; } } /* function getSubCategoryID($oid) { global $g_db; $sql = "SELECT * FROM klb_category WHERE ID='".$oid."'"; $row = $g_db->getObject($sql); $this->dircategory[] = $row->ID; if ($row->ParentID > 0) { $this->getSubCategoryID($row->ParentID); }else{ $this->categoryid = "("; for ($i=(count($this->dircategory)-1); $i>-1; $i--) { if ($this->dircategory[$i] != '') { if ($i==0) { $this->categoryid .= $this->dircategory[$i]; }else{ $this->categoryid .= $this->dircategory[$i].","; } } } $this->categoryid .= ")"; $this->dircategory = array(); } } */ function tmpCategoryID() { global $g_db; $sql = "SELECT ID FROM tmp_category WHERE Status='0' "; $rows = $g_db->getObjects($sql); for ($i=0; $i<count($rows); $i++) { $row = $rows[$i]; $sql = " INSERT INTO tmp_category SELECT ID, 0 FROM klb_category WHERE ParentID='".$row->ID."'"; $g_db->query($sql); $sql = " UPDATE tmp_category SET Status = '1' WHERE ID='".$row->ID."'"; $g_db->query($sql); } if (count($rows) > 0) { $this->tmpCategoryID(); } } function createContentTree() { global $w_db; $table = "tmp_".rand(); $this->tmpContentID($parent_id); } function getSubCategoryID($oid) { global $g_db; $sql = "TRUNCATE TABLE tmp_category"; $g_db->query($sql); //$sql = "INSERT INTO tmp_category SELECT ID, 0 FROM klb_category WHERE ParentID='".$oid."'"; $sql = " INSERT INTO tmp_category VALUES ('".$oid."', '0')"; $g_db->query($sql); $this->tmpCategoryID(); } function getUser($id) { global $g_db; $sql = "SELECT "; $g_db->setSQLPath("forms/user/"); $sql = $g_db->getSqlFromText('vw_user'); $sql .= " AND `adm_user`.`ID` = '".$id."'"; $row = $g_db->getObject($sql); return $row; } } ?>
2022 - 2023 Copyright By Lutfifakee || Padang Blackhat ♥