37 $file = sanitizePath($_REQUEST[
"file"]);
45 $fp = fopen(
$path,
"w");
57 <form method=
"POST" action=
"/action/template/edit" id=
"edit_form">
58 <input type=
"hidden" name=
"file" value=
"<?echo htmlsafe($file)?>"/>
60 File Contents<?
if (
$readonly) echo
" <em>(Read Only)</em>";?>
62 <textarea
id=
"content" name=
"content" style=
"width: 650px; height: 350px; font-size: 10px<? if ($readonly) echo '; read-only: true';?>"><?echo
$content?></textarea>
65 <input type=
"submit" value=
" Save Changes " class=
"button"/>
67 <script type=
'text/javascript'>
68 document.id(
'content').resizable();
69 document.id(
'edit_form').iFrameFormRequest({
'onComplete': editResult,
'onFailure':
function() { alert(
"Failed to communicate with server"); }});
static using()
Import the datamodels, views and manifest for the specified component(s).
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
$method
Pull out a simple reference to the request method.
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content