* @throws \Exception
*/
public static function getApplication()
{
if (!self::$application) {
throw new \Exception('Failed to start application', 500);
}
return self::$application;
}
// jimport( 'joomla.user.authentication'); // comment out after joomla4 migration
echo "DEBUG: inside " . __FILE__ . " line " . __LINE__ ;
// get the database information
//////////////////////////////////////////$appvars = JFactory::getApplication(); // connect will use this // comment out after joomla4 migration
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . " set appvars";
$appvars = Factory::getApplication(); // connect will use this
// now get user object and 3 example user variables
//////////////$user = JFactory::getUser(); // comment out after joomla4 migration
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . " set user";
$user = Factory::getUser();
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ ;
<?php
// teamforms.php
/// must be before header
include "includes/session.php"; // access joomla login
$ifadmin = ($my->usertype == 'Administrator' || $my->usertype == 'Super Administrator' );
/// init variables ///
$script_version = $parent_version = "021f4-008g1" ; // 20240204
$script_name = basename(__FILE__);
Exception
|
---|
Exception: Failed to start application at /home/usbf/public_html/libraries/src/Factory.php:158 at Joomla\CMS\Factory::getApplication() (/home/usbf/public_html/apps/includes/session.php:69) at include('/home/usbf/public_html/apps/includes/session.php') (/home/usbf/public_html/apps/teamforms.php:5) |