예제 #1
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
use Factory\SmartyFactory;
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
define('FULL_PATH', dirname(__FILE__) . '/');
define('SMARTY_DIR', FULL_PATH . '/smarty/');
define('TEMPLATE_DIR', '../Public/templates/');
define('TEMPLATE_C_DIR', '../templates_c/');
$smarty = SmartyFactory::getInstance();
$skin_name = $_SESSION["stylefile"];
$smarty->template_dir = TEMPLATE_DIR . $skin_name . '/';
$smarty->compile_dir = TEMPLATE_C_DIR;
$smarty->plugins_dir = "./plugins/";
$smarty->assign("TEXTCONTACT", TEXTCONTACT);
$smarty->assign("EMAILCONTACT", EMAILCONTACT);
$smarty->assign("COPYRIGHT", COPYRIGHT);
$smarty->assign("CCMAINTITLE", CCMAINTITLE);
$smarty->assign("SKIN_NAME", $skin_name);
// if it is a pop window
if (!is_numeric($popup_select)) {
    $popup_select = 0;
}
$smarty->assign("popupwindow", $popup_select);
if (!empty($msg)) {
예제 #2
0
 public function testCreateInstance()
 {
     $smarty = SmartyFactory::getInstance();
     $this->assertInstanceOf('\\Smarty', $smarty);
 }