מנהל: צוות האתר
קוד: בחר הכל
מוד זה יאפשר לך כאשר תכתוב בפורום
-נעול-
ההודעה תנעל...
כאשר תכתוב
-שחרר-
ההודעה תפתח..
(עובד רק למנהלים כמובן..)
www.tool-forum.vze.com
#
#-----[ פתח ]------------------------------------------
#
includes/functions_post.php
#
#-----[ חפש ]------------------------------------------
#
//
// Add poll
//
#
#-----[ לפני הוסף ]-----------------------------------
#
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == MOD)
{
if(strstr($post_message, "-נעול-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, "-נעול-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == MOD)
{
if(strstr($post_message, "-שחרר-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_UNLOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, "-שחרר-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_UNLOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
#
#-----[ שמור סגור והחזר את הקבצים לשרת ]--------------------------
#
# EoM
Amitex כתב:קח את המוד נעולקוד: בחר הכל
מוד זה יאפשר לך כאשר תכתוב בפורום
-נעול-
ההודעה תנעל...
כאשר תכתוב
-שחרר-
ההודעה תפתח..
(עובד רק למנהלים כמובן..)
www.tool-forum.vze.com
#
#-----[ פתח ]------------------------------------------
#
includes/functions_post.php
#
#-----[ חפש ]------------------------------------------
#
//
// Add poll
//
#
#-----[ לפני הוסף ]-----------------------------------
#
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == MOD)
{
if(strstr($post_message, "-נעול-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, "-נעול-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == MOD)
{
if(strstr($post_message, "-שחרר-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_UNLOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, "-שחרר-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_UNLOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
#
#-----[ שמור סגור והחזר את הקבצים לשרת ]--------------------------
#
# EoM
חזור אל “תמיכה במודים - ארכיון”
משתמשים הגולשים בפורום זה: אין משתמשים רשומים ו־ 40 אורחים