Exemplo n.º 1
0
define('INFORUM', true);
define('BASEREL', '../');
////////////////////////////////////////////////////////////////////////////////////////////////////////
require '../lib/_start.php';
///////////////////////////////////////////////////////// SYSTEMSTART ///
require 'lib/_start.php';
/////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->lang->drop('postform');
$apx->lang->drop('editor');
$_REQUEST['id'] = (int) $_REQUEST['id'];
$_REQUEST['quote'] = (int) $_REQUEST['quote'];
if (!$_REQUEST['id']) {
    die('missing thread-ID!');
}
$threadinfo = thread_info($_REQUEST['id']);
if (!$threadinfo['threadid'] || $threadinfo['del']) {
    message($apx->lang->get('MSG_THREADNOTEXIST'));
}
$foruminfo = forum_info($threadinfo['forumid']);
if (!$foruminfo['forumid']) {
    message($apx->lang->get('MSG_FORUMNOTEXIST'));
}
if (!forum_access_read($foruminfo)) {
    tmessage('noright', array(), false, false);
}
if (!forum_access_post($foruminfo, $threadinfo)) {
    tmessage('noright', array(), false, false);
}
check_forum_password($foruminfo);
////////////////////////////////////////////////////////////////////////////////////////// POST ERSTELLEN
Exemplo n.º 2
0
    ////////////////////////////////////////////
    $threadpath = array(array('TITLE' => replace($threadinfo['title']), 'LINK' => mkrellink('thread.php?id=' . $threadinfo['threadid'], 'thread,' . $threadinfo['threadid'] . ',1' . urlformat($threadinfo['title']) . '.html')));
    $apx->tmpl->assign('PATH', array_merge(forum_path($foruminfo, 1), $threadpath));
    $apx->tmpl->assign('PATHEND', $apx->lang->get('SPLITTHREAD'));
    titlebar($apx->lang->get('SPLITTHREAD'));
} elseif ($_REQUEST['action'] == 'ipstats') {
    $apx->lang->drop('ipstats');
    $_REQUEST['id'] = (int) $_REQUEST['id'];
    if (!$_REQUEST['id']) {
        die('missing post-ID!');
    }
    $postinfo = post_info($_REQUEST['id']);
    if (!$postinfo['postid'] || $postinfo['del']) {
        message($apx->lang->get('MSG_POSTNOTEXIST'));
    }
    $threadinfo = thread_info($postinfo['threadid']);
    if (!$threadinfo['threadid'] || $threadinfo['del']) {
        message($apx->lang->get('MSG_THREADNOTEXIST'));
    }
    $foruminfo = forum_info($threadinfo['forumid']);
    if (!$foruminfo['forumid']) {
        message($apx->lang->get('MSG_FORUMNOTEXIST'));
    }
    if (!forum_access_admin($foruminfo)) {
        tmessage('noright', array(), false, false);
    }
    //////////////////////////////////////////////////////////////////////////////// SUCHERGEBNISSE ANZEIGEN
    //Beiträge von dieser IP
    $data = $db->fetch("SELECT userid,username,count(postid) AS posts FROM " . PRE . "_forum_posts WHERE ip='" . addslashes($postinfo['ip']) . "' GROUP BY username ORDER BY username ASC");
    if (count($data)) {
        foreach ($data as $res) {
Exemplo n.º 3
0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
require_once '../libs/common.php';
require_once '../libs/operator.php';
require_once '../libs/chat.php';
require_once '../libs/userinfo.php';
$operator = check_login();
$page = array();
loadsettings();
setlocale(LC_TIME, getstring("time.locale"));
function thread_info($id)
{
    global $mysqlprefix;
    $link = connect();
    $thread = select_one_row("select userName,agentName,remote,userAgent," . "unix_timestamp(dtmmodified) as modified, unix_timestamp(dtmcreated) as created," . "vclocalname as groupName " . "from {$mysqlprefix}chatthread left join {$mysqlprefix}chatgroup on {$mysqlprefix}chatthread.groupid = {$mysqlprefix}chatgroup.groupid " . "where threadid = " . intval($id), $link);
    mysql_close($link);
    return $thread;
}
if (isset($_GET['threadid'])) {
    $threadid = verifyparam("threadid", "/^(\\d{1,10})?\$/", "");
    $lastid = -1;
    $page['threadMessages'] = get_messages($threadid, "html", false, $lastid);
    $page['thread'] = thread_info($threadid);
}
prepare_menu($operator, false);
start_html_output();
require '../view/thread_log.php';