uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
consult-e-syn
/
public_html
/
c1c92
/
..
/
templates
/
blog_syn
/
fields
/
import.php
/
/
<?php defined('JPATH_PLATFORM') or die; if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR); jimport('joomla.form.formfield'); class JFormFieldImport extends JFormField { protected $type = 'Import'; protected function getInput() { $table = JTable::getInstance('Style', 'TemplatesTable'); $table->load(JRequest::getInt('id')); $themeName = $table->template; $themeDir = JPATH_SITE . '/templates/' . $themeName; $contentZipFile = JPATH_SITE . '/templates/' . $themeName . '/data/content.json'; $zipExists = file_exists($contentZipFile ) ? 1 : 0; ob_start(); ?> <script>if ('undefined' != typeof jQuery) document._jQuery = jQuery;</script> <script src="<?php echo JURI::root() . 'templates/' . $table->template . '/jquery.js' ?>" type="text/javascript"></script> <script>jQuery.noConflict();</script> <script> jQuery(function ($) { var importBtn = $('#<?php echo $this->id; ?>'), lblImportBtn = $('#<?php echo $this->id; ?>-lbl'), loc = window.location, path = loc.pathname.replace('/administrator/index.php' , ''), importPath = loc.protocol + '//' + loc.host + path + '/templates/' + '<?php echo $themeName; ?>' + '/data', replaceStatus = true, zipExists = '<?php echo $zipExists; ?>'; if (zipExists == '0') { importBtn.hide(); lblImportBtn.hide(); } importBtn.attr("disabled", false); function log(msg, color) { $('#logImport').append($('<div></div>').text(msg).css('color', color)); importBtn.removeAttr("disabled"); } importBtn.click(function (event) { event.preventDefault(); $('#logImport').html(''); importBtn.attr("disabled", true); $.ajax({ url : importPath + '/install.php', data : { 'template' : '<?php echo $themeName;?>', 'replaceContent' : replaceStatus }, dataType : 'text', success : function (data) { if (data.match(/^result:/)) { log(data.substring('result:'.length)); } else if (data.match(/^error:/)) { log(data.split(':').pop(), 'red'); } else { log(data, 'red'); } }, error : function (xhr, textStatus, errorThrown) { log('Request failed: ' + xhr.status, 'red'); } }); }); }); </script> <script>if (document._jQuery) jQuery = document._jQuery;</script> <button type="button" name="<?php echo $this->name; ?>" id="<?php echo $this->id; ?>" disabled><?php echo JText::_('TPL_IMPORTCONTENT_TEXT'); ?></button> <div id="logImport" style="color: #2762A4; float:left;width:100%;margin-top:5px"></div> <?php return ob_get_clean(); } }
/var/www/consult-e-syn/public_html/c1c92/../templates/blog_syn/fields/import.php