require_once JPATH_BASE . DS . 'components' . DS . 'com_jomtube' . DS . 'helpers' . DS . 'helpers.php';
require_once JPATH_BASE . DS . 'components' . DS . 'com_jomtube' . DS . 'assets' . DS . 'lib' . DS . 'mix.php';
// include language file
$lang_file = JPATH_BASE . DS . 'components' . DS . 'com_jomtube' . DS . 'languages' . DS . $c->jtube_language . '.php';
$lang_default_file = JPATH_BASE . DS . 'components' . DS . 'com_jomtube' . DS . 'languages' . DS . 'english.php';
if (file_exists($lang_file)) {
    require_once $lang_file;
} else {
    require_once $lang_default_file;
}
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$task = JRequest::getVar('task', '');
switch ($task) {
    case 'aio':
        return aio();
}
function aio()
{
    $act = JRequest::getVar('act', '');
    $database =& JFactory::getDBO();
    switch ($act) {
        case 'category':
            $catid = JRequest::getVar('catid', 0);
            $where = ' WHERE v.category_id = ' . $catid;
            break;
        case 'member':
            $user_id = JRequest::getVar('userid', 0);
            $where = ' WHERE v.user_id = ' . $user_id;
            break;
        case 'newest':
Ejemplo n.º 2
0
                <!-- Row End -->
                
                <!-- Row -->
                <div class="row-fluid">
                    <!-- Column -->
                    <div class="col-md-12">
                        
                        <!-- Group -->
                        <div class="form-group">
                            <label class="col-md-3 control-label"><?php 
echo _t('Secondary Email');
?>
</label>
                            <div class="col-md-8">
                                <input type="email" name="email2"<?php 
echo aio();
?>
 class="form-control" value="<?php 
echo _h($addr[0]['email2']);
?>
" />
                            </div>
                        </div>
                        <!-- // Group END -->
                        
                    </div>
                </div>
                <!-- Row End -->
            </div>
				
				<hr class="separator" />