private function sendEmail($to, $subject, $message)
 {
     // Build email
     $header = "From: SiteCrafter @ " . Config::siteConfig("SITE_URL") . "\n";
     // Send email
     if (@mail($to, $subject, $message, $header) == false) {
         $errors .= "There was an error sending email.";
     }
 }
Example #2
0
	(this is what will appear in the title of the browser window when someone views this page)
	<br/><br/>
	
	<?php 
// Configure the Editor control
$oFCKeditor = new FCKeditor('pageEditor');
$oFCKeditor->BasePath = '/manage/fckeditor/';
$oFCKeditor->Height = '500';
$oFCKeditor->Value = $this->fileData;
if ($_SESSION['editorMode'] == 'BASIC') {
    $oFCKeditor->ToolbarSet = 'Simple';
} else {
    $oFCKeditor->ToolbarSet = 'Advanced';
}
// Send information to the control for easy link addition
$oFCKeditor->Config['siteURL'] = Config::siteConfig("SITE_URL");
$oFCKeditor->Config['cwd'] = $this->session['cwd'];
$oFCKeditor->Config['pageList'] = implode("|", $this->pageList);
// Create the control on the page
$oFCKeditor->Create();
// Show meta fields if the user is in advanced mode
if ($this->session['editorMode'] != 'BASIC') {
    ?>
	<br/>
	Page Description: <?php 
    Form::textbox('pageDescription', $this->pageState, 40, 400);
    ?>
	(a brief summary of the page)<br/><br/>
	Page Keywords: <?php 
    Form::textbox('pageKeywords', $this->pageState, 42, 400);
    ?>
Example #3
0
<?php

include_once Constants::$MODEL_DIR . "config.php";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
	<title><?php 
print Config::siteConfig('SITE_NAME');
?>
 - SiteCrafter</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<link href="/manage/application/static/css/moyd.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/manage/application/static/js/moyd.js"></script>
	{{head}}
</head>
<body>
	<div id="banner"><div id="bannerImage"><a id="bannerLink" href="index"></a></div></div>
	<div id="content">
		{{content}}
		<div class="push"></div>
	</div>
	<div id="footer">
		<div id="appName">SiteCrafter</div>
		<div id="copyright">Copyright © 2009 <a href="http://www.ptss.net">PT Software Solutions</a></div>
	</div>
</body>
</html>
Example #4
0
</h1>
<h3>Information about your web pages can be found below.</h3>

<?php 
if ($this->session['userPath'] == '') {
    // If admin, then show User Management link
    ?>
	<div id="manageUsers"><a href="/manage/userMgmt">To manage users, click here</a>.</div>
<?php 
}
?>

<div id="youAreHere">
	<strong>You Are Here: </strong>
	<span class="hilite"><?php 
print Config::siteConfig('SITE_URL') . $this->session['cwd'];
?>
</span>
</div>

<div id="messages">
	<?php 
if ($this->messages) {
    foreach ($this->messages as $msg) {
        ?>
		<div class="message"><?php 
        print $msg . '<br/>';
        ?>
</div>
	<?php 
    }