Alternc  latest
Alternc logiel libre pour l'hébergement
bro_editor.php File Reference

Go to the source code of this file.

Variables

const NOCSRF true
 File editor part of AlternC file manager / browser. More...
 
 $fields
 
 $editing =false
 
 $editfile =ssla($editfile)
 
 $texte =ssla($texte)
 
 $R =$bro->convertabsolute($R,1)
 
 $p =$bro->GetPrefs()
 
if(isset($cancel) && $cancel) if(isset($saveret) && $saveret) if(isset($save) && $save) $addhead ['css'][] ='<link rel="stylesheet" href="/javascript/prettify/prettify.css" type="text/css" />'
 
 $addhead ['js'][] ='<script src="/javascript/prettify/prettify.js" type="text/javascript"></script>'
 
 $content =$bro->content($R,$editfile)
 
if(empty($content)) else
 
 if ( $editing)
 

Variable Documentation

◆ $addhead [1/2]

if (isset( $cancel) &&$cancel) if (isset( $saveret) &&$saveret) if (isset( $save) &&$save) $addhead[ 'css'][] ='<link rel="stylesheet" href="/javascript/prettify/prettify.css" type="text/css" />'

Definition at line 78 of file bro_editor.php.

◆ $addhead [2/2]

$addhead[ 'js'][] ='<script src="/javascript/prettify/prettify.js" type="text/javascript"></script>'

Definition at line 79 of file bro_editor.php.

◆ $content

$content =$bro->content($R,$editfile)

Definition at line 91 of file bro_editor.php.

Referenced by m_action\create_file(), and m_cron\cron_callback().

◆ $editfile

$editfile =ssla($editfile)

Definition at line 42 of file bro_editor.php.

◆ $editing

$editing =false

Definition at line 41 of file bro_editor.php.

◆ $fields

$fields
Initial value:
= array (
"editfile" => array ("request", "string", ""),
"texte" => array ("post", "string", ""),
"save" => array ("post", "string", ""),
"saveret" => array ("post", "string", ""),
"cancel" => array ("post", "string", ""),
"R" => array ("request", "string", ""),
)

Definition at line 31 of file bro_editor.php.

◆ $p

◆ $R

◆ $texte

$texte =ssla($texte)

Definition at line 43 of file bro_editor.php.

Referenced by m_bro\save().

◆ else

if (empty( $content)) else
Initial value:
{
echo $content
$content
Definition: bro_editor.php:91

Definition at line 112 of file bro_editor.php.

◆ if

if($editing) (   $editing)

Definition at line 133 of file bro_editor.php.

◆ NOCSRF

const NOCSRF true

File editor part of AlternC file manager / browser.

Definition at line 29 of file bro_editor.php.