Changeset 864 in ExiteCMS for trunk/administration/panel_editor.php
- Timestamp:
- 10/03/07 21:38:21 (5 years ago)
- File:
-
- 1 edited
-
trunk/administration/panel_editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/panel_editor.php
r841 r864 22 22 $variables = array(); 23 23 24 // allow panels to move columns? (side to center and back?) 25 define('PANEL_SIDE_MOVE', true); 26 24 27 // check for the proper admin access rights 25 28 if (!checkrights("P") || !defined("iAUTH") || $aid != iAUTH) fallback(BASEDIR."index.php"); … … 72 75 if ($panel_type == "dynamic" && $panel_template == "") $error .= $locale['472']."<br>"; 73 76 if ($error == "") { 74 $result = dbquery("UPDATE ".$db_prefix."panels SET panel_name='$panel_name', panel_filename='$panel_filename', panel_code='$panel_code', panel_template='$panel_template', panel_access='$panel_access', panel_display='$panel_display', panel_ usermod = '$panel_usermod', panel_state = '$panel_state', panel_datestamp = '".time()."' WHERE panel_id='$panel_id'");77 $result = dbquery("UPDATE ".$db_prefix."panels SET panel_name='$panel_name', panel_filename='$panel_filename', panel_code='$panel_code', panel_template='$panel_template', panel_access='$panel_access', panel_display='$panel_display', panel_side='$panel_side', panel_usermod = '$panel_usermod', panel_state = '$panel_state', panel_datestamp = '".time()."' WHERE panel_id='$panel_id'"); 75 78 } 76 79 // define the message panel variables … … 192 195 $panel_name = ""; 193 196 $panel_filename = ""; 194 $panel_code = "// define the variables for the panel\n\ n\$variables['text'] = 'Hello World!';\n";197 $panel_code = "// define the variables for the panel\n\$variables = array();\n\n\$variables['text'] = 'Hello World!';\n"; 195 198 $panel_template = "{* Smarty template *}\n\n{include file=\"_opentable.tpl\" name=\$_name title=\$_title state=\$_state style=\$_style}\n{\$text}\n{include file=\"_closetable.tpl\"}"; 196 199 $panel_type = "";
Note: See TracChangeset
for help on using the changeset viewer.
