$file = array_pop($file); $bptw = substr($_SERVER['PHP_SELF'], 0, -(strlen($file) + 1)); $qyst = (!empty($_SERVER['QUERY_STRING']) ? '?' : '') . $_SERVER['QUERY_STRING']; $rdtu = str_replace($qyst, '', $_SERVER['REQUEST_URI']); $bsgt = trim(str_replace($bptw, '', $rdtu), "/"); $_ll['url']['home'] = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $bptw . '/'; $_ll['url']['path'] = $bsgt; $_ll['url']['base'] = $_ll['url']['home'] . $_ll['url']['path']; $_ll['url']['full'] = $_ll['url']['base'] . $qyst; $_ll['url']['get'] = !empty($bsgt) ? explode('/', $bsgt) : array(); unset($file, $bptw, $qyst, $rdtu, $bsgt); /** Carregando e configunado o Autoload */ require_once BASE_PATH . DS . 'usr' . DS . 'AutoLoad.php'; AutoLoad::setPath(BASE_PATH . DS . 'usr'); AutoLoad::setPath(BASE_PATH . DS . 'api'); AutoLoad::setPath(BASE_PATH . DS . 'app'); /** Verifica a existemcia do inicialozador (confg.php) */ if (!file_exists($f = BASE_PATH . DS . 'etc' . DS . 'confg.ll')) { die('file: ' . $f . '; não existemte.'); } else { $_ll = array_merge($_ll, Confgs::getFile($f)); } /** starta todas os difines configurados */ foreach ($_ll['defines'] as $name => $value) { if (!defined($name)) { define($name, $value); } } /** retorna os dados processados/carregados pelo start */ if (str_replace('/', DS, trim($_SERVER['DOCUMENT_ROOT'], DS) . $_SERVER['SCRIPT_NAME']) !== trim(str_replace('/', DS, __FILE__), DS)) { return $_ll;
<?php /** auto load subistituto */ AutoLoad::setPath(BASE_PATH . DS . 'api' . DS . 'phpmailer'); /** * PHPMailer - PHP email creation and transport class. * PHP Version 5 * @package PHPMailer * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project * @author Marcus Bointon (Synchro/coolbru) <*****@*****.**> * @author Jim Jagielski (jimjag) <*****@*****.**> * @author Andy Prevost (codeworxtech) <*****@*****.**> * @author Brent R. Matzelle (original founder) * @copyright 2012 - 2014 Marcus Bointon * @copyright 2010 - 2012 Jim Jagielski * @copyright 2004 - 2009 Andy Prevost * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License * @note This program is distributed in the hope that it will be useful - WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. */ /** * PHPMailer - PHP email creation and transport class. * @package PHPMailer * @author Marcus Bointon (Synchro/coolbru) <*****@*****.**> * @author Jim Jagielski (jimjag) <*****@*****.**> * @author Andy Prevost (codeworxtech) <*****@*****.**> * @author Brent R. Matzelle (original founder) */ class PHPMailer {