Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/campaigns.tar
Назад
view.html.php 0000604 00000002420 15245617350 0007174 0 ustar 00 <?php /** * @author Mailjet SAS * * @copyright Copyright (C) 2014 Mailjet SAS. * @license GNU General Public License version 2 or later; see LICENSE */ // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla view library jimport('joomla.application.component.view'); if (!function_exists('class_alias')) { // For php older then 5.3 function class_alias($orig, $alias) { eval('abstract class ' . $alias . ' extends ' . $orig . ' {}'); } } if (!class_exists('JViewLegacy')) { class_alias('JView','JViewLegacy'); } if (!class_exists('JModelLegacy')) { class_alias('JModel','JModelLegacy'); } $jversion = new JVersion; $jshort = $jversion->getShortVersion(); $lang = JFactory::getLanguage(); $extension = 'com_mailjet'; $base_dir = JPATH_SITE; $language_tag = $lang->getTag(); $reload = true; $lang->load($extension, $base_dir, $language_tag, $reload); class MailjetViewCampaigns extends JViewLegacy { /** * HelloWorlds view display method * @return void */ function display($tpl = null) { JToolBarHelper::title (JText::_("COM_MAILJET_CAMPAIGNS"), 'logo.png' ); //JToolBarHelper::save (); $this->sidebar = JHtmlSidebar::render(); parent::display ($tpl); } } tmpl/default.php 0000604 00000002023 15245617350 0007656 0 ustar 00 <?php /** * @author Mailjet SAS * * @copyright Copyright (C) 2014 Mailjet SAS. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die('Restricted access'); $lib_dir = __DIR__.'/../../../lib/'; require_once ($lib_dir.'config.php'); require_once ($lib_dir.'lib/Auth.php'); require_once ($lib_dir.'lib/mailjet-api-strategy.php'); $auth = new Auth(); $nextStepUrl = $auth->haveToken() ? 'campaigns' : 'reseller/signup'; //$address = "{$mailjetUrl}/{$nextStepUrl}?r={$resellerName}&show_menu=none&u=Joomla-3.0&f=amc"; $address = "https://".(($auth->getApiVersion == '0.1')?"www":(($auth->getApiVersion == 'REST')?"app":"www")).".mailjet.com/{$nextStepUrl}?r={$resellerName}&show_menu=none&u=Joomla-3.0&f=amc"; if ($auth->haveToken()) { $address .= "&t=" . $auth->getToken(); } ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <iframe width="1000" height="1300" src="<?php echo $address; ?>"> </div>