<?php require_once "../include/includes.php"; //setContentType("text","plain"); $template = getParam("template", "signup"); $send = getParamBoolean("send"); $to = reqParam("to"); //$to = "*****@*****.**"; $message = createEmailFromTemplate($template, $to); $email_config = getConfig("_email"); echoJsVar("email_config"); $sentDate = date("Y-m-d H:i:s"); echo "Sent: {$sentDate}<br/>"; $sentDate = md5($sentDate); echo "MD5: {$sentDate}<br/>"; echo "To: {$to}<br/>\n"; if ($message) { echo $message->getSubject() . "\n"; echo $message->getBody(); } if ($send) { $result = sendEmail($message); echoJsVar("result"); }
addCssFromConfig("lib.bootstrap"); addAllCss("style"); addAllCss("directives"); addScriptFromConfig("lib", "jquery.min.js"); addScriptFromConfig("lib.bootstrap"); addScriptFromConfig("lib.angular"); addScriptFromConfig("lib"); addScriptFromConfig("MediaThingy", "mt.extensions.js"); addAllScripts("js"); addAllScripts("directives"); ?> <script type="text/javascript"> <?php echoJsVar("fpConfig"); echoJsVar("fpUser"); ?> </script> </head> <body ng-controller="LayoutController as lc" ng-class="lc.bodyClasses()" on-scroll-h="lc.sidebar=false" class="bggray"> <!-- Static navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <a class="navbar-brand textOutline" ng-class="{active: lc.stateIs('main')}" href="#/main"> <img class="stretchH" src="<?php echo getConfig('app.logo'); ?> " alt="FOOD PORTRAIT"/> </a>