Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/domains/alsaif.group/private_html/modules/mod_minifrontpage/ |
<?php
/**
* @package Joomla.Site
* @subpackage mod_minifrontpagepro
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @subpackage mod_minifrontpagepro
* @author TemplatePlazza
* @link http://www.templateplazza.com
*/
// No direct access to this file
defined('_JEXEC') or die;
class mod_minifrontpageInstallerScript
{
public function install($parent)
{
$thumb_folder_0 ="/images/thumbnails/";
$thumb_folder ="/images/thumbnails/mod_minifrontpage/";
// Create thumbnail folder if not exist
if (!JFolder::exists(JPATH_ROOT.$thumb_folder)) {
JFolder::create(JPATH_ROOT.$thumb_folder);
JFile::write(JPATH_ROOT.$thumb_folder_0.'/index.html', "");
JFile::write(JPATH_ROOT.$thumb_folder.'/index.html', "");
}
echo '
<p style="border-radius:4px;display:block;border:1px solid #BCE8F1;padding:10px 15px;background:#D8EDF7;color:#31718F;font-weight:400;"> <strong><a style="color:#333;text-decoration:underline;" href="index.php?option=com_modules&view=modules&filter_search=&filter_module=mod_minifrontpage">Open Module Manager</a></strong> to publish the module.</p><br/>';
}
function update($parent)
{
$thumb_folder_0 ="/images/thumbnails/";
$thumb_folder ="/images/thumbnails/mod_minifrontpage/";
// Create thumbnail folder if not exist
if (!JFolder::exists(JPATH_ROOT.$thumb_folder)) {
JFolder::create(JPATH_ROOT.$thumb_folder);
JFile::write(JPATH_ROOT.$thumb_folder_0.'/index.html', "");
JFile::write(JPATH_ROOT.$thumb_folder.'/index.html', "");
}
echo '
<p style="border-radius:4px;display:block;border:1px solid #BCE8F1;padding:10px 15px;background:#D8EDF7;color:#31718F;font-weight:400;">The module has been updated to version ' . $parent->get('manifest')->version . ' <strong><a style="color:#333;text-decoration:underline;" href="index.php?option=com_modules&view=modules&filter_search=&filter_module=mod_minifrontpage">Open Module Manager</a></strong> to manage the module.</p><br/>';
}
}