More and more cnages to make the site functional
This commit is contained in:
parent
6c44a79a72
commit
16ef8fdf6c
17 changed files with 493 additions and 199 deletions
|
@ -75,23 +75,11 @@ function get_user_list() {
|
|||
}
|
||||
|
||||
function get_user_room($username) {
|
||||
global $config;
|
||||
/* Open URL to userlist
|
||||
if (!$fh = @fopen("http://localhost.localdomain:".$config['SOCK_PORT']."/info/?", "r"))
|
||||
return false;
|
||||
|
||||
// Read data and close
|
||||
while(!feof($fh))
|
||||
$content .= fread($fh, 1024);
|
||||
fclose($fh); */
|
||||
$content = $ccache->get('roomdata');
|
||||
global $config;
|
||||
$content = get_user_list();
|
||||
$content = trim($content);
|
||||
$content = explode("\n", $content);
|
||||
|
||||
// Create userlist array
|
||||
// Format of array:
|
||||
// $userlist[$room_name]['s'] = $room_state
|
||||
// $userlist[$room_name]['u'][$nick] = $color
|
||||
foreach($content as $line) {
|
||||
$data = explode("|", $line);
|
||||
list($nick, $color) = explode(",", $data[1]);
|
||||
|
|
35
modules/chat/templates/default/privatechatlogs.tpl.part
Normal file
35
modules/chat/templates/default/privatechatlogs.tpl.part
Normal file
|
@ -0,0 +1,35 @@
|
|||
<div id="maincol_top_invisible">
|
||||
</div>
|
||||
<div class="maincol_review_header">
|
||||
<h2><span>Private Chatlogs</span></h2><br />
|
||||
</div>
|
||||
<div class="maincol_box_empty">
|
||||
<div class="content_page">
|
||||
{if $convos==""}
|
||||
No private logs yet.
|
||||
{else}
|
||||
<table width="600px">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Date - Room</th>
|
||||
<th>Owner / Shared by</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
{foreach from=$convos item=con}
|
||||
<tr>
|
||||
<td width="10%">{$con.id}</td>
|
||||
<td><a href="http://logs.ponytopia.net/id/{$con.id}" target="_blank">{$con.date} - {$con.room}</a></td>
|
||||
<td><a href="http://forum.ponytopia.net/user-{$con.owner}.html" target="_blank">{$con.sname}</a></td>
|
||||
<td width="16%"><a href="http://logs.ponytopia.net/pdf/{$con.id}"><img src="/themes/ponytopia/images/icons/pdf.png" style="border:none;"/></a>
|
||||
<a onclick="return confirmLink(this, 'Are you sure to delete the Log? It will be gone for good.')" href="/index.php?task=chat&sub=deletelog&id={$con.id}"><img src="/themes/ponytopia/images/icons/delete.png" style="border:none;" /></a>{if $con.owner==$con.uid}<a href="/index.php?task=chat&sub=editlog&id={$con.id}"><img src="/themes/ponytopia/images/icons/wrench.png" style="border:none;"/></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
{if $pagination!=""}
|
||||
<div align="center">{$pagination}</div>
|
||||
{/if}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue