예제 #1
0
function resetLastAccessed($chatID)
{
    $tempPrefs = getPrefs($chatID);
    $tempPrefs['lastAccessed'] = 0;
    writePrefs($tempPrefs, $chatID);
    /*
        open(LA,">$cgiDIR"."users/$tempChatID.la") || &printError("resetLastAccessed","$!");
        flock(LA,2);
        print LA "0\n";
        close(LA);
        chmod (0666, "$cgiDIR"."users/$tempChatID.la");
    */
}
예제 #2
0
/****************************************************************/
/* ATutor														*/
/****************************************************************/
/* Copyright (c) 2002-2010                                      */
/* Inclusive Design Institute                                   */
/* http://atutor.ca												*/
/*                                                              */
/* 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.				*/
/****************************************************************/
define('AT_INCLUDE_PATH', '../../../include/');
require AT_INCLUDE_PATH . 'vitals.inc.php';
//authenticate(USER_CLIENT, USER_ADMIN);
require AT_INCLUDE_PATH . '../mods/_standard/chat/lib/chat.inc.php';
$myPrefs = getPrefs($_SESSION['login']);
if ($_POST['submit'] || $_POST['submit_r']) {
    getAndWriteFormPrefs($myPrefs);
    if ($_POST['submit']) {
        $location = 'prefs2.php?firstLoginFlag=' . $addslashes($_POST['firstLoginFlag']);
    } else {
        $location = 'chat.php?firstLoginFlag=' . $addslashes($_POST['firstLoginFlag']);
    }
    Header('Location: ' . $location);
    exit;
}
writePrefs($myPrefs, $_SESSION['login']);
require 'include/html/chat_header.inc.php';
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
예제 #3
0
function delFavorite($uri)
{
    $prefs = getPrefs($_SESSION["login"]);
    unset($prefs['favorites'][$uri]);
    setPrefs($_SESSION["login"], $prefs);
}
예제 #4
0
/* ATutor														*/
/****************************************************************/
/* Copyright (c) 2002-2010                                      */
/* Inclusive Design Institute                                   */
/* http://atutor.ca												*/
/*                                                              */
/* 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.				*/
/****************************************************************/
define('AT_INCLUDE_PATH', '../../../include/');
require AT_INCLUDE_PATH . 'vitals.inc.php';
session_write_close();
//authenticate(USER_CLIENT, USER_ADMIN);
require AT_INCLUDE_PATH . '../mods/_standard/chat/lib/chat.inc.php';
$myPrefs = getPrefs($_GET['chatID']);
require 'include/html/chat_header.inc.php';
$now = time();
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="input-form">
<tr>
	<th align="left"><?php 
echo _AT('chat_compose_message');
?>
</th>
</tr>
<tr>
	<td>
	<form action="display.php?set=<?php 
echo $now;
?>
예제 #5
0
/****************************************************************/
/* ATutor														*/
/****************************************************************/
/* Copyright (c) 2002-2010                                      */
/* Inclusive Design Institute                                   */
/* http://atutor.ca												*/
/*                                                              */
/* 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.				*/
/****************************************************************/
define('AT_INCLUDE_PATH', '../../../include/');
require AT_INCLUDE_PATH . 'vitals.inc.php';
//authenticate(USER_CLIENT, USER_ADMIN);
require AT_INCLUDE_PATH . '../mods/_standard/chat/lib/chat.inc.php';
$myPrefs = getPrefs($_SESSION['username']);
writePrefs($myPrefs, $_SESSION['username']);
cleanUp();
$topMsgNum = $bottomMsgNum = 0;
howManyMessages($topMsgNum, $bottomMsgNum);
$filterChatID = $_GET['filterChatID'];
require 'include/html/chat_header.inc.php';
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
	<td align="right"><a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php 
echo _AT('chat_return');
?>
</a></td>
</tr>
</table>