Esempio n. 1
0
<?php

include dirname(__FILE__) . '/inc/variables.inc.php';
include PSI_DIR . 'psi.inc.php';
$psi = new Psi();
$psi->load_config();
session_start();
if (!check_session($psi)) {
    echo "Must login. Go to <a target='_parent' href='index.php'>PSI home</a>";
    exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>PSI - Contacts</title>
	<link rel="StyleSheet" href="psi.css" type="text/css">
</head>
<body>

 <table border="0" width="690" cellpadding="0" cellspacing="0">
 <tr class="columnTitle">
 <td width="75">ID</td>
 <td width="166">Name</td>
 <td width="158">Destination</td>
 </tr>
 
<?php 
reset($psi->contacts);
while (list($key, $c) = each($psi->contacts)) {
    ?>
Esempio n. 2
0
File: psi.php Progetto: pgodel/psi
#!/usr/bin/php -q
<?php 
/**********************************************************************
*                      PSI - PHP Simple Informer                      *
*                              Version 1.5                            *
*                   By Pablo Godel - pablo@godel.com.ar               *
*                    http://www.godel.com.ar/psi/                     *
*                                                                     *
*  SUPPORT FURTHER DEVELOPMENT, DONATE: http://www.godel.com.ar/psi/  *
*                                                                     *
*                                                                     *
*          This is code is distributed under the GPL license          *
**********************************************************************/
include_once dirname(__FILE__) . '/psi.inc.php';
$psi = new Psi();
$psi->load_config();
$psi->check();