2008-07-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/operation/agentes/networkmap.php: Some minor bugfixes introduced with my changes yesterday * pandora_console/general/links_menu.php: 2 queries for a menu? Changed it to a single query. This list will likely never be empty - if it is, Links section won't be generated * pandora_console/general/logon_ok.php: Updated the queries to go faster. Changed the timestamp calculation to an indexed query using utimestamp and UNIXTIME(NOW())-604800 * pandora_console/images/networkmap/8.png: Added the Mac OS X icon. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@952 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1a6f1418e0
commit
0005672a69
|
@ -1,3 +1,13 @@
|
|||
2008-07-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* pandora_console/operation/agentes/networkmap.php: Some minor bugfixes introduced with my changes yesterday
|
||||
|
||||
* pandora_console/general/links_menu.php: 2 queries for a menu? Changed it to a single query. This list will likely never be empty - if it is, Links section won't be generated
|
||||
|
||||
* pandora_console/general/logon_ok.php: Updated the queries to go faster. Changed the timestamp calculation to an indexed query using utimestamp and UNIXTIME(NOW())-604800
|
||||
|
||||
* pandora_console/images/networkmap/8.png: Added the Mac OS X icon..
|
||||
|
||||
2008-07-11 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* pandora_console/operation/agentes/estado_grupo.php: Fixed the issue where all data was 0-ed out. There was an if-then-else construction that wasn't working well
|
||||
|
|
|
@ -18,18 +18,16 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
$sql1='SELECT * FROM tlink ORDER BY name';
|
||||
$sql1='SELECT link,name FROM tlink ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
if ($row=mysql_fetch_array($result)){
|
||||
?>
|
||||
<div class="tit bg4">:: <?php echo $lang_label["links_header"] ?> ::</div>
|
||||
<div class="menul" id="link">
|
||||
<?php
|
||||
$sql1='SELECT * FROM tlink ORDER BY name';
|
||||
$result2=mysql_query($sql1);
|
||||
while ($row2=mysql_fetch_array($result2)){
|
||||
echo "<div class='linkli'><ul class='mn'><li><a href='".$row2["link"]."' target='_new' class='mn'>".$row2["name"]."</a></li></ul></div>";
|
||||
}
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<div class='linkli'><ul class='mn'><li><a href='".$row["link"]."' target='_new' class='mn'>".$row["name"]."</a></li></ul></div>";
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -28,14 +28,13 @@ echo "</p>";
|
|||
|
||||
// Private messages pending to read !
|
||||
|
||||
$sql='SELECT COUNT(*) FROM tmensajes WHERE id_usuario_destino="'.$nick.'"
|
||||
AND estado="FALSE";';
|
||||
$sql='SELECT COUNT('id_mensaje') AS count FROM tmensajes WHERE id_usuario_destino="'.$nick.'" AND estado="FALSE";';
|
||||
$resultado = mysql_query ($sql);
|
||||
$row = mysql_fetch_array ($resultado);
|
||||
if ($row["COUNT(*)"] != 0){
|
||||
if ($row["count"] != 0){
|
||||
echo "<h2>". $lang_label["new_message_bra"] . '
|
||||
<a href="index.php?sec=messages&sec2=operation/messages/message">'
|
||||
.$row["COUNT(*)"] . ' <img src="images/email.png" border="0">'
|
||||
.$row["count"] . ' <img src="images/email.png" border="0">'
|
||||
.$lang_label["new_message_ket"] . '</a></h2>';
|
||||
}
|
||||
|
||||
|
@ -45,7 +44,7 @@ echo "<tr><td valign='top'>";
|
|||
// Site news !
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
echo '<h2>' . $lang_label["site_news"] . '</h2>';
|
||||
$sql_news = "SELECT * FROM tnews ORDER by timestamp DESC LIMIT 3";
|
||||
$sql_news = "SELECT subject,timestamp,text FROM tnews ORDER by timestamp DESC LIMIT 3";
|
||||
if ($result_news = mysql_query ($sql_news)){
|
||||
echo '<table cellpadding="4" cellspacing="4" width="270" class="databox">';
|
||||
while ($row = mysql_fetch_array ($result_news)) {
|
||||
|
@ -173,7 +172,7 @@ $table->head[2] = lang_string ('date');
|
|||
$table->head[3] = lang_string ('src_address');
|
||||
$table->head[4] = lang_string ('comments');
|
||||
|
||||
$sql = sprintf ('SELECT * FROM tsesion WHERE (TO_DAYS(fecha) > TO_DAYS(NOW()) - 7)
|
||||
$sql = sprintf ('SELECT ID_usuario,accion,fecha,IP_origen,descripcion FROM tsesion WHERE (utimestamp > UNIX_TIMESTAMP(NOW()) - 604800)
|
||||
AND ID_usuario = "%s" ORDER BY fecha DESC LIMIT 5', $nick);
|
||||
$sessions = get_db_all_rows_sql ($sql);
|
||||
foreach ($sessions as $session) {
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -30,7 +30,7 @@ function generate_dot ($simple = 0, $font_size) {
|
|||
$graph = open_graph();
|
||||
|
||||
// Get agent data
|
||||
$agents = mysql_query('SELECT id_grupo, id_parent, id_agente FROM tagente WHERE disabled = 0 ORDER BY id_grupo');
|
||||
$agents = mysql_query('SELECT id_grupo, nombre, id_os, id_parent, id_agente FROM tagente WHERE disabled = 0 ORDER BY id_grupo');
|
||||
while ($agent = mysql_fetch_assoc($agents)) {
|
||||
if (give_acl($config["id_user"], $agent["id_grupo"], "AR") == 0)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue