OSI-Certified logo

Source code of file edit.php
from the Content Management module for Phprojekt.

<?php
// Content Management System module for PHProjekt (CMS4P).
// Copyright 2002-2005 by Mario A. Valdez-Ramirez
// http://www.mariovaldez.net/

// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, 
// Boston, MA 02111-1307, USA.

// You can contact Mario A. Valdez-Ramirez by email 
// at mario@mariovaldez.org or paper mail at 
// Olmos 809, San Nicolas, NL. 66495, Mexico.

//session_start();
$path_pre="../";
include_once (
$path_pre "cm/cm_anon.inc.php");
$include_path $path_pre "lib/lib.inc.php";
include_once 
$include_path;
include_once (
$path_pre "cm/cm_lib.inc.php");
fcm_load_secdb ($cm_security);
echo 
$cm_html_header;


function 
cm_redisplayform () {
  global 
$cm_text$cm_docpath$cm_enable_htmledit;
  global 
$cm_title$cm_path$cm_keywords$cm_abstract$cm_content$cm_pub_date$cm_oldupd_date$cm_upd_date$cm_uauthor$cm_uowner$cm_gviewer;
  global 
$cm_enable_rating$cm_enable_comments$cm_logo$cm_short_title$cm_enable_html$cm_enable_priority$cm_enable_contentless$cm_enable_visedit;
  global 
$timezone$user_group$groups$cm_langua;
  
$cm_upd_date fcm_curdate_string ();
  echo 
"<form class=\"cms\" action=\"edit.php\" method=\"post\" id=\"cm_editingform\">";
  echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"edit1border\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\"><tr><td class=\"edit1body\">\n";
  
$cm_authornames fcm_user_names ($cm_uauthor);
  echo 
"<span class=\"inputname\">{$cm_text["author"]}:</span> <span class=\"pseudoinput\">" fcm_htmlentity ($cm_authornames[1] . " " $cm_authornames[2]) . "</span>&nbsp;
  <input type=\"hidden\" name=\"cm_uauthor\" value=\"
$cm_uauthor\">";
  echo 
"<span class=\"inputname\">{$cm_text["creation"]}:</span> <span class=\"pseudoinput\">$cm_pub_date</span><br>
  <input type=\"hidden\" name=\"cm_pub_date\" value=\"
$cm_pub_date\">
  <span class=\"inputname\">
{$cm_text["update"]}:</span> <span class=\"pseudoinput\">$cm_oldupd_date ($cm_upd_date)</span>
  <input type=\"hidden\" name=\"cm_oldupd_date\" value=\"
$cm_oldupd_date\">
  <input type=\"hidden\" name=\"cm_upd_date\" value=\"
$cm_upd_date\"><br>";
  echo 
"<span class=\"inputname\">{$cm_text["owner"]}:</span>";
  if (!
$cm_uowner) { $cm_uowner $user_kurz; }
  echo 
"<select class=\"cms\" name='cm_uowner'>";
  
$result3 db_query("select kurz, vorname, nachname from " CM_PP_PREFIX "users order by (nachname)") or db_die();
  while (
$row3 db_fetch_row($result3)) {
    echo 
"<option class=\"cms\" value='$row3[0]'";
    if (
$cm_uowner == $row3[0]) { echo " selected"; }
    echo 
">" fcm_htmlentity ($row3[2] . ", " $row3[1]) . "\n";
  }
  echo 
"</select>&nbsp;";
  echo 
"<span class=\"inputname\">{$cm_text["visibleto"]}:</span>";
  
$cm_defgroup fcm_default_group ();
  if (!
$cm_gviewer) { $cm_gviewer $cm_defgroup[0]; }
  echo 
"<select class=\"cms\" name='cm_gviewer'>";
  echo 
"<option class=\"cms\" value=''>\n";
  if (
$groups) {
    
$result3 db_query("select kurz, name from " CM_PP_PREFIX "gruppen order by (name)") or db_die();
    while (
$row3 db_fetch_row($result3)) {
      echo 
"<option class=\"cms\" value='$row3[0]'";
      if (
$cm_gviewer == $row3[0]) { echo " selected"; }
      echo 
">" fcm_htmlentity ($row3[1]) . "\n";
    }
  }
  echo 
"</select><br>";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_rating\" value=\"1\"";
  if (
$cm_enable_rating) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablerating"]}</span>&nbsp;";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_comments\" value=\"1\"";
  if (
$cm_enable_comments) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablecomments"]}</span>&nbsp;";
  if (
$cm_enable_htmledit) {
    echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_html\" value=\"1\"";
    if (
$cm_enable_html) { echo "checked";}
    echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablehtml"]}</span>";
  }
  else {
    echo 
"<input type=\"hidden\" name=\"cm_enable_html\" value=\"0\">";
  }

  echo 
"<br><input class=\"cms\" type=\"checkbox\" name=\"cm_enable_contentless\" value=\"1\"";
  if (
$cm_enable_contentless) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablecontentless"]}</span>&nbsp;";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_priority\" value=\"1\"";
  if (
$cm_enable_priority) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablepriority"]}</span>&nbsp;";

  echo 
"<br><span class=\"inputname\">{$cm_text["shorttitle"]}:</span>
  <input class=\"cms\" type=\"text\" name=\"cm_short_title\" size=\"20\" maxlength=\"20\" value=\"
$cm_short_title\">";
  echo 
"</td></tr></table></td></tr></table>\n";
  echo 
"<br>
  <span class=\"inputname\">
{$cm_text["title"]}:</span><br>
  <input class=\"cms\" type=\"text\" name=\"cm_title\" size=\"80\" maxlength=\"255\" value=\"
$cm_title\"><br>
  <span class=\"inputname\">
{$cm_text["directory"]}:</span><br>
  <span class=\"pseudoinput\">
$cm_path</span>
  <input type=\"hidden\" name=\"cm_path\" value=\"
$cm_path\"><br>
  <span class=\"inputname\">
{$cm_text["logoimage"]}:</span><br>
  <input class=\"cms\" type=\"text\" name=\"cm_logo\" size=\"40\" maxlength=\"255\" value=\"
$cm_logo\"><br>
  <span class=\"inputname\">
{$cm_text["keywords"]}:</span><br>
  <textarea class=\"cms\" cols=\"100\" rows=\"2\" name=\"cm_keywords\">
$cm_keywords</textarea><br>
  <span class=\"inputname\">
{$cm_text["summary"]}:</span><br>
  <textarea class=\"cms\" cols=\"100\" rows=\"2\" name=\"cm_abstract\">
$cm_abstract</textarea><br>
  <span class=\"inputname\">
{$cm_text["content"]}:</span><br>
  <span class=\"pseudoinput\">
{$cm_text["dontusehtml"]} <a class=\"cms\" href=\"$cm_docpath/$cm_langua.edithelp.php\" target=\"_blank\">{$cm_text["awmvariant"]}</a></span>\n";

  
fcm_call_htmleditor ("edit.php", ($cm_enable_htmledit && $cm_enable_visedit), true);

  echo
"<br>
  <textarea class=\"cms\" cols=\"100\" rows=\"20\" name=\"cm_content\" id=\"cm_content\">
$cm_content</textarea><br>
  <input class=\"cms\" type=\"submit\" name=\"cm_save\" value=\"
{$cm_text["savedoc"]}\">
  <input class=\"cms\" type=\"submit\" name=\"cm_preview\" value=\"
{$cm_text["preview"]}\">
  </form>
  "
;
}

function 
cm_firsttimeform () {
  global 
$cm_text$cm_docpath$cm_enable_htmledit$cm_enable_visedit;
  global 
$row1;
  global 
$timezone$user_group$groups$user_kurz$cm_langua;
  
$cm_upd_date fcm_curdate_string ();
  echo 
"<form class=\"cms\" action=\"edit.php\" method=\"post\" id=\"cm_editingform\">";
  
$cm_authornames fcm_user_names ($row1[2]);
  echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"edit1border\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\"><tr><td class=\"edit1body\">\n";
  echo 
"<span class=\"inputname\">{$cm_text["author"]}:</span> <span class=\"pseudoinput\">" fcm_htmlentity ($cm_authornames[1] . " " $cm_authornames[2]) . "</span>&nbsp;
  <input type=\"hidden\" name=\"cm_uauthor\" value=\"
$row1[2]\">";
  echo 
"<span class=\"inputname\">{$cm_text["creation"]}:</span> <span class=\"pseudoinput\">$row1[5]</span><br>
  <input type=\"hidden\" name=\"cm_pub_date\" value=\"
$row1[5]\">
  <span class=\"inputname\">
{$cm_text["update"]}:</span> <span class=\"pseudoinput\">$row1[9] ($cm_upd_date)</span>
  <input type=\"hidden\" name=\"cm_oldupd_date\" value=\"
$row1[9]\">
  <input type=\"hidden\" name=\"cm_upd_date\" value=\"
$cm_upd_date\"><br>";
  echo 
"<span class=\"inputname\">{$cm_text["owner"]}:</span>";
  if (!
$row1[3]) { $cm_uowner $user_kurz;
  }
  else {
    
$cm_uowner $row1[3];
  }
  echo 
"<select class=\"cms\" name='cm_uowner'>";
  
$result3 db_query("select kurz, vorname, nachname from " CM_PP_PREFIX "users order by upper(nachname)") or db_die();
  while (
$row3 db_fetch_row($result3)) {
    echo 
"<option class=\"cms\" value='$row3[0]'";
    if (
$cm_uowner == $row3[0]) { echo " selected"; }
    echo 
">" fcm_htmlentity ($row3[2] . ", " $row3[1]) . "\n";
  }
  echo 
"</select>&nbsp;";
  echo 
"<span class=\"inputname\">{$cm_text["visibleto"]}:</span>";
  
$cm_defgroup fcm_default_group ();
  if (!
$row1[4]) { $cm_gviewer $cm_defgroup[0];
  }
  else {
    
$cm_gviewer $row1[4];
  }
  echo 
"<select class=\"cms\" name='cm_gviewer'>";
  echo 
"<option class=\"cms\" value=''>\n";
  if (
$groups) {
    
$result3 db_query("select kurz, name from " CM_PP_PREFIX "gruppen order by upper(name)") or db_die();
    while (
$row3 db_fetch_row($result3)) {
      echo 
"<option class=\"cms\" value='$row3[0]'";
      if (
$cm_gviewer == $row3[0]) { echo "selected"; }
      echo 
">" fcm_htmlentity ($row3[1]) . "\n";
    }
  }
  echo 
"</select><br>";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_rating\" value=\"1\"";
  if (
$row1[11]) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablerating"]}</span>&nbsp;";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_comments\" value=\"1\"";
  if (
$row1[12]) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablecomments"]}</span>&nbsp;";
  if (
$cm_enable_htmledit) {
    echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_html\" value=\"1\"";
    if (
$row1[15]) { echo "checked";}
    echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablehtml"]}</span>";
  }
  else {
    echo 
"<input type=\"hidden\" name=\"cm_enable_html\" value=\"0\">";
  }
  echo 
"<br><input class=\"cms\" type=\"checkbox\" name=\"cm_enable_contentless\" value=\"1\"";
  if (
stristr ($row1[10], CM_HITTYPE_CONTENTLESS)) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablecontentless"]}</span>&nbsp;";
  echo 
"<input class=\"cms\" type=\"checkbox\" name=\"cm_enable_priority\" value=\"1\"";
  if (
stristr ($row1[10], CM_HITTYPE_ANNOUNCE)) { echo "checked";}
  echo 
">&nbsp;<span class=\"inputname\">{$cm_text["enablepriority"]}</span>&nbsp;";

  echo 
"<br><span class=\"inputname\">{$cm_text["shorttitle"]}:</span>
  <input class=\"cms\" type=\"text\" name=\"cm_short_title\" size=\"20\" maxlength=\"20\" value=\"
$row1[13]\">";
  echo 
"</td></tr></table></td></tr></table>\n";
  echo 
"<br>
  <span class=\"inputname\">
{$cm_text["title"]}:</span><br>
  <input class=\"cms\" type=\"text\" name=\"cm_title\" size=\"80\" maxlength=\"255\" value=\"
$row1[0]\"><br>
  <span class=\"inputname\">
{$cm_text["directory"]}:</span><br>
  <span class=\"pseudoinput\">
$row1[1]</span>
  <input type=\"hidden\" name=\"cm_path\" value=\"
$row1[1]\"><br>
  <span class=\"inputname\">
{$cm_text["logoimage"]}:</span><br>
  <input class=\"cms\" type=\"text\" name=\"cm_logo\" size=\"40\" maxlength=\"255\" value=\"
$row1[16]\"><br>
  <span class=\"inputname\">
{$cm_text["keywords"]}:</span><br>
  <textarea class=\"cms\" cols=\"100\" rows=\"2\" name=\"cm_keywords\">
$row1[6]</textarea><br>
  <span class=\"inputname\">
{$cm_text["summary"]}:</span><br>
  <textarea class=\"cms\" cols=\"100\" rows=\"2\" name=\"cm_abstract\">
$row1[7]</textarea><br>
  <span class=\"inputname\">
{$cm_text["content"]}:</span><br>
  <span class=\"pseudoinput\">
{$cm_text["dontusehtml"]} <a class=\"cms\" href=\"$cm_docpath/$cm_langua.edithelp.php\" target=\"_blank\">{$cm_text["awmvariant"]}</a></span>\n";

  
fcm_call_htmleditor ("edit.php", ($cm_enable_htmledit && $cm_enable_visedit), true);

  echo 
"<br><textarea class=\"cms\" cols=\"100\" rows=\"20\" name=\"cm_content\" id=\"cm_content\">";
  if (
$row1[15]) {
    echo 
fcm_decode_html ($row1[8]);
  }
  else {
    echo 
$row1[8];
  }
  echo 
"</textarea><br>
  <input class=\"cms\" type=\"submit\" name=\"cm_save\" value=\"
{$cm_text["savedoc"]}\">
  <input class=\"cms\" type=\"submit\" name=\"cm_preview\" value=\"
{$cm_text["preview"]}\">
  </form>
  "
;
}



if (!
$cm_save) {
  if (
$cm_path) {
    if (
fcm_check_constraints (CM_SEC_CHANGE$user_kurz$cm_path)) {
      if (
$cm_preview) {
        
$cm_validops fcm_check_validops ($user_kurz$cm_path);
        
fcm_title_nav2 ($cm_path$cm_validops[CM_SEC_CREATE], $cm_validops[CM_SEC_DELETE], $cm_validops[CM_SEC_CHANGE], $cm_validops[CM_SEC_DISPLA], ($cm_validops[CM_SEC_COMMEN] && fcm_can_becommented ($cm_path)), $cm_validops[CM_SEC_DISPLA], fcm_user_is_superuser($user_kurz), ($cm_validops[CM_SEC_COMMEN] && fcm_can_berated ($cm_path)));
//        if (get_magic_quotes_gpc ()) {
          
$cm_short_title stripslashes ($cm_short_title);
          
$cm_title stripslashes ($cm_title);
          
$cm_keywords stripslashes ($cm_keywords);
          
$cm_abstract stripslashes ($cm_abstract);
          
$cm_content stripslashes ($cm_content);
          
$cm_logo stripslashes ($cm_logo);
//        }
        
$cm_logo ereg_replace("[^[:alnum:]_\.-]"""$cm_logo);
        
$cm_short_title fcm_truncate_string (fcm_htmlentity ($cm_short_title), 20);
        
$cm_title fcm_truncate_string (fcm_htmlentity ($cm_title), 255);
        
fcm_warn_logoimage ($cm_path$cm_logo$cm_enable_verifylogo);
        
cm_redisplayform ();
        
$cm_enable_html abs ($cm_enable_html);
        echo 
"<p>&nbsp;</p><TABLE BORDER=\"1\" CELLPADDING=\"5\" CELLSPACING=\"0\"><TR><TD class=\"previewcontent\">";
        if (
abs ($cm_enable_contentless) != 1) {
          if (
$cm_enable_html) {
            
$cm_content fcm_recode_URIs ($cm_content$cm_path" href=\"");
            
$cm_content fcm_recode_URIs ($cm_content$cm_path" src=\"");
            if (
$cm_enable_htmledit) {
              echo 
fcm_process_markup (fcm_secure_html (fcm_decode_htmlfull ($cm_content)), $cm_pathtrue);
            }
            else {
              echo 
fcm_process_markup (fcm_htmlentity (fcm_decode_html ($cm_content)), $cm_pathfalse);
            }
          }
          else {
            echo 
fcm_process_markup (fcm_htmlentity ($cm_content), $cm_pathfalse);
          }
        }
        echo 
"</TD></TR></TABLE>";
      }
      else {
        
$result1 db_query("select cmdb_title, cmdb_directory, cmdb_author_user, cmdb_owner_user, cmdb_viewer_group, cmdb_date_creation, cmdb_keywords, cmdb_abstract, cmdb_content, cmdb_date_update, cmdb_type, cmdb_rated, cmdb_commented, cmdb_short_title, cmdb_logo, cmdb_enable_html, cmdb_logo from " CM_DB_PREFIX "content3 where cmdb_directory like '$cm_path' and cmdb_type like '%" CM_HITTYPE_PAGE "%'") or db_die();
        
$row1 db_fetch_row($result1);
        if (
$row1[1]) {
          
$cm_validops fcm_check_validops ($user_kurz$cm_path);
          
fcm_title_nav2 ($cm_path$cm_validops[CM_SEC_CREATE], $cm_validops[CM_SEC_DELETE], $cm_validops[CM_SEC_CHANGE], $cm_validops[CM_SEC_DISPLA], ($cm_validops[CM_SEC_COMMEN] && fcm_can_becommented ($cm_path)), $cm_validops[CM_SEC_DISPLA], fcm_user_is_superuser($user_kurz), ($cm_validops[CM_SEC_COMMEN] && fcm_can_berated ($cm_path)));
          
fcm_warn_logoimage ($cm_path$row1[16], $cm_enable_verifylogo);
          
cm_firsttimeform ();
        }
        else {
          
fcm_title_nav2 (""falsefalsefalsefalsefalsefalsefalse);
          
fcm_message ("{$cm_text["dirnotfound"]} {$cm_text["tryfromroot"]}"CM_MSGSTYLE_ERROR);
          
fcm_add_logentry (""$user_kurzCM_APPLOG_ERROR"Error when editing page. Dir not found.");
        }
      }
    }
    else {
      
fcm_message ($cm_text["needaccess2edit"], CM_MSGSTYLE_WARNING);
      
fcm_add_logentry (""$user_kurzCM_APPLOG_ERROR"Error when editing page. Not enough permissions.");
    }
  }
  else {
    
fcm_title_nav2 (""falsefalsefalsefalsefalsefalsefalse);
    
fcm_message ("{$cm_text["dirnotfound"]} {$cm_text["tryfromroot"]}"CM_MSGSTYLE_ERROR);
    
fcm_add_logentry (""$user_kurzCM_APPLOG_ERROR"Error when editing page. Dir not found.");
  }
}
else {     
// if we are saving and the user have permissions...
  
if (fcm_check_constraints (CM_SEC_CHANGE$user_kurz$cm_path)) {
    
$cm_enable_rating abs ($cm_enable_rating);
    
$cm_enable_comments abs ($cm_enable_comments);
    
$cm_enable_html abs ($cm_enable_html);
    if (
abs ($cm_enable_contentless) == 1) {
      
$cm_enable_contentless CM_HITTYPE_CONTENTLESS;
    }
    else {
      
$cm_enable_contentless "";
    };
    if (
abs ($cm_enable_priority) == 1) {
      
$cm_enable_priority CM_HITTYPE_ANNOUNCE;
    }
    else {
      
$cm_enable_priority "";
    };
    
$cm_logo ereg_replace("[^[:alnum:]_\.-]"""$cm_logo);
    
$cm_short_title fcm_truncate_string (fcm_htmlentity ($cm_short_title), 20);
    
$cm_title fcm_truncate_string (fcm_htmlentity ($cm_title), 255);
    
$cm_keywords fcm_htmlentity ($cm_keywords);
    
$cm_abstract fcm_htmlentity ($cm_abstract);
    if ((
$cm_enable_html) && ($cm_enable_htmledit)) {    // TO FIX: should we force this, or depend on these vars; should we omit the second one?
      
$cm_content fcm_recode_URIs ($cm_content$cm_path" href=\\\"");
      
$cm_content fcm_recode_URIs ($cm_content$cm_path" src=\\\"");
      
$cm_content fcm_htmlentity (fcm_recode_html ($cm_content));
    }
    else {
      
$cm_content fcm_htmlentity ($cm_content);
    }
    
$cm_upd_date fcm_curdate_string ();
    
$result2 db_query("update " CM_DB_PREFIX "content3 set cmdb_type='" CM_HITTYPE_PAGE $cm_enable_contentless $cm_enable_priority "', cmdb_title='$cm_title', cmdb_owner_user='$cm_uowner', cmdb_viewer_group='$cm_gviewer', cmdb_date_update='$cm_upd_date', cmdb_keywords='$cm_keywords', cmdb_abstract='$cm_abstract', cmdb_content='$cm_content', cmdb_rated=$cm_enable_rating, cmdb_commented=$cm_enable_comments, cmdb_short_title='$cm_short_title', cmdb_version=1, cmdb_sign='', cmdb_enable_html=$cm_enable_html, cmdb_logo='$cm_logo' where cmdb_directory like '$cm_path' and cmdb_type like '%" CM_HITTYPE_PAGE "%'") or db_die();
    if (
$cm_enable_contentless == CM_HITTYPE_CONTENTLESS) {
      
fcm_delete_hitrecord ($cm_pathCM_HITTYPE_PAGE);
      
fcm_delete_rating ($cm_pathCM_HITTYPE_PAGE);
      
fcm_delete_usercomments ($cm_pathCM_HITTYPE_PAGE);
    }
    else {
      
fcm_reset_updatedvisit ($cm_pathCM_HITTYPE_PAGE);
    }
    
$cm_validops fcm_check_validops ($user_kurz$cm_path);
    
fcm_title_nav2 ($cm_path$cm_validops[CM_SEC_CREATE], $cm_validops[CM_SEC_DELETE], $cm_validops[CM_SEC_CHANGE], $cm_validops[CM_SEC_DISPLA], ($cm_validops[CM_SEC_COMMEN] && fcm_can_becommented ($cm_path)), $cm_validops[CM_SEC_DISPLA], fcm_user_is_superuser($user_kurz), ($cm_validops[CM_SEC_COMMEN] && fcm_can_berated ($cm_path)));
    
fcm_message ("{$cm_text["updateddocin"]} $cm_path"CM_MSGSTYLE_INFORMATION);
    
fcm_add_logentry (""$user_kurzCM_APPLOG_EDIT_PAGE"Edited page $cm_path.");
  }
  else {
    
fcm_title_nav2 (""falsefalsefalsefalsefalsefalsefalse);
    
fcm_message ($cm_text["needaccess2edit"], CM_MSGSTYLE_WARNING);
    
fcm_add_logentry (""$user_kurzCM_APPLOG_ERROR"Error when editing page. Not enough permissions.");
  }
}


echo 
$cm_html_footer;
?>

 
 
NA fum/lmd: 2004.09.16
Copyright ©1994-2018 by Mario A. Valdez-Ramírez.
no siga este enlace / do not follow this link