########################################################################################
 : Edit_comments                                                         #
										       #
: Maxximus                                                                        #
										       #
 :     Slaed 1.6 Free Final.      #
 ,       :#               
 News, Files, Links.    Coppermine v1.3.1a for SLAED CMS ZloiZmei edition.   #
										       #
    Coppermine,     2 			       #
1. \admin\case\case.foto_comments.php						       #
2. \admin\modules\foto_comments.php						       #
										       #
 : 1.1.0                                                                   #
										       #
  Slaed: 1.6 Free Final                                               #
										       #
C :                                                              #
										       #
,   : 10                                              #
########################################################################################
#
#-----[  ]------------------------------------------
#
admin\language\lang-russian.php


#
#-----[    ]----------------------------------
#
define("_EDITCOMMENTS"," ");
define("_COMMENT","");


#
#-----[  ]------------------------------------------
#
\modules\Files\admin\index.php


#
#-----[  ]---------------------------------------------------------------------------------------
#
function delit_file_comment($tid, $lid, $ok=0) {
        global $prefix, $db, $admin_file;
    if ($ok==1) {
                $db->sql_query("DELETE FROM ".$prefix."_files_comments WHERE tid=$tid");
        $db->sql_query("UPDATE ".$prefix."_files SET totalcomments=totalcomments-1 WHERE lid='$lid'");
Header("Location: ".$admin_file.".php?op=files");


#
#-----[  ]------------------------------------------
#
Header("Location: ".$admin_file.".php?op=files");


#
#-----[  ]------------------------------------------------
#
Header("Location: ".$admin_file.".php?op=Files_ShowComment");


=======================================================================================================================
#
#-----[  ]------------------------------------------
#
\modules\News\admin\index.php


#
#-----[  ]---------------------------------------------------------------------------------------
#
function DeleteComment($tid, $sid, $ok=0) {
    global $prefix, $db, $admin_file;
        $tid = intval($tid);
        $sid = intval($sid);
    if($ok) {
        $db->sql_query("DELETE FROM ".$prefix."_comments WHERE tid='$tid'");
                $db->sql_query("UPDATE ".$prefix."_stories SET comments=comments-1 WHERE sid='$sid'");
        Header("Location: index.php?name=News&file=article&sid=$sid");


#
#-----[  ]------------------------------------------
#
Header("Location: index.php?name=News&file=article&sid=$sid");


#
#-----[  ]------------------------------------------------
#
Header("Location: ".$admin_file.".php?op=ShowComment");



=======================================================================================================================
:      Coppermine v1.3.1a for SLAED CMS ZloiZmei edition,     

#
#-----[  ]------------------------------------------
#
\modules\coppermine\delete.php


#
#-----[  ]---------------------------------------------------------------------------------------
#
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
        $redirect = $CPG_URL . "&file=displayimage&pos=" . ( $comment_data['pid']);
        
        header($header_location . $redirect);


#
#-----[  ]------------------------------------------
#
header($header_location . $redirect);


#
#-----[  ]------------------------------------------------
#
Header("Location: ".$admin_file.".php?op=Foto_ShowComment");

========================================================================================================================
#
#-----[  ]------------------------------------------
#
\modules\Links\admin\index.php


#
#-----[  ]---------------------------------------------------------------------------------------
#
function delit_link_comment($tid, $lid, $ok=0) {
        global $prefix, $db, $admin_file;
    if ($ok==1) {
                $db->sql_query("DELETE FROM ".$prefix."_links_comments WHERE tid=$tid");
        $db->sql_query("UPDATE ".$prefix."_links SET totalcomments=totalcomments-1 WHERE lid='$lid'");
        Header("Location: ".$admin_file.".php?op=links");


#
#-----[  ]------------------------------------------
#
Header("Location: ".$admin_file.".php?op=links");

#
#-----[  ]------------------------------------------------
#
Header("Location: ".$admin_file.".php?op=Links_ShowComment");


=======================================================================================================================