Source

com_prof3tablog / admin / admin.prof3tablog.php

Full commit
<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

require_once( JApplicationHelper::getPath( 'admin_html' ) );

switch ($task) {
	case 'add':
		if(JRequest::getVar('articleTitle')) {
			prof3tablogScreens::add();
		} else {
			prof3tablogScreens::addForm();
		}
		break;
	case 'edit':
		if(JRequest::getVar('articleTitle')) {
			prof3tablogScreens::edit();
		} else {
			if(JRequest::getVar('articleId')) {
				prof3tablogScreens::editForm();
			} else {
				prof3tablogScreens::editChoose();
			}
		}
		break;
	case 'view':
		prof3tablogScreens::view();
		break;
	case 'delete':
		if(JRequest::getVar('articleId')) {
			prof3tablogScreens::delete();
		} else {
			prof3tablogScreens::deleteChoose();
		}
		break;

	default:
		break;
}
?>