Bontiv-Sourceer source code viewer
Root | Help
./PhpMyCMS/mod/video/main.php
<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2009
 */

class mod_video {
    static private
$user;

    function
index_exp(){
       
$page = page::Open();
       
       
$page->module = 'video';
       
$page->ExeTpl('index.tpl');
        return
true;
    }
    function
xml_exp()
    {
       
header('Content-Type: application/xml');
       
$page = page::Open();
       
$sql = DB_Driver::open();
       
$sql -> table='video';
       
$result = $sql->Select(
               
NULL,
                array(
'*'),
               
NULL
           
);
        while (
$xml = mysql_fetch_assoc($result)) {
           
$page->    append('xml',$xml);
        }
       
$page->module = 'video';
       
$page->ExeTpl('xml.tpl');
    }
}
?>
Presented with Bontiv-Sourceer