Пример #1
0
            $aftertime = date("YmdHis");
            $string = "messages[0] = new Array(); messages[0][0]={$aftertime}; messages[0][1]={$jsrn}; messages[0][2]=\"EXIT\"; messages[0][3]=\"\"; messages[0][4]=\"\";";
            print $string;
            exit;
        }
    }
    // for Google Chrome
    $nowtime = date("YmdHis");
    $sqlquery = "UPDATE livehelp_users SET chataction='{$nowtime}' WHERE user_id=" . intval($myid) . " AND status='chat'";
    $mydatabase->query($sqlquery);
    $omitself = true;
    if (!empty($UNTRUSTED['includeself'])) {
        $omitself = false;
    }
    print showmessagesmobile($myid, "", $UNTRUSTED['HTML'], $see, $hide, true, $omitself);
    print showmessagesmobile($myid, "writediv", $UNTRUSTED['LAYER'], $see, $hide, true, $omitself);
}
if ($UNTRUSTED['whattodo'] == "requests") {
    $onload = "";
    $DIVS = " ";
    $lasthtml = "";
    $timeof = rightnowtime();
    $jsonarray = array();
    // update operators timestamp .
    $sql = "UPDATE livehelp_users set lastaction='{$timeof}' WHERE sessionid='" . $identity['SESSIONID'] . "' ";
    $mydatabase->query($sql);
    $prev = mktime(date("H"), date("i") - 10, date("s"), date("m"), date("d"), date("Y"));
    $oldtime = date("YmdHis", $prev);
    $sqlquery = "SELECT * FROM livehelp_users WHERE status='chat' AND isoperator='N' ORDER by showedup";
    $chatcheck = $mydatabase->query($sqlquery);
    $numchatnow = $chatcheck->numrows();
Пример #2
0
        }
    }
    ?>
       	<table width=100%><tr>
         <td width=50%><a href=http://www.craftysyntax.com/iphone/help.php?howto=1><img src=images/help.png width=95 height=37 border=0></a></td>
         <td width=50%><a href=logout.php><img src=images/logout.png width=117 height=30 border=0></a></td>
        </tr>
        </table>       
       		<?php 
} else {
    ?>

      <?php 
    $timeof3 = $timeof - 10000;
    print "<img src=images/blank.gif width=200 height=300 border=0><br>";
    print showmessagesmobile($operator_id, "", $timeof3, $see);
}
?>
       
      </div>    </div>
 
   	<?php 
if (count($chatarray) != 0) {
    ?>
        	<script type="text/javascript"> 
       	  selectedid = <?php 
    echo $chatarray[0][2];
    ?>
;
       	  selectedchannel = <?php 
    echo $chatarray[0][1];