Source for file libsite.php
Documentation is available at libsite.php
* @author Christopher Troup <mini@chatetheory.com>
require_once 'libdb.php';
* @param integer $id Site index
// TODO What to do if site Id not passed?
* Select and return list of all sites registered in phpUserTrack
* @return array List of sites
return $this->_query('select * from phpusertrack_sites');
function addSite($name, $url, $desc = null) {
$sql = "insert into phpusertrack_sites set url='$url', name='$name', phpusertrack_sites.desc='$desc'";
$sql = "select * from phpusertrack_sites where id=" . $this->_siteId;
|