* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS;
use Joomla/CMS/Application/CMSApplicationInterface;
use Joomla/CMS/Cache/Cache;
use Joomla/CMS/Cache/CacheControllerFactoryInterface;
use Joomla/CMS/Client/ClientHelper;
use Joomla/CMS/Date/Date;
use Joomla/CMS/Document/Document;
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
return null;
*
* @since 3.4
*/
public function loadClass($class)
{
if ($result = $this->loader->loadClass($class)) {
\JLoader::applyAliasFor($class);
}
return $result;
}
// 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__);
ParseError
|
---|
ParseError: syntax error, unexpected token "/", expecting "," or ";" at /home/usbf/public_html/libraries/src/Factory.php:12 at Composer\Autoload\includeFile('/home/usbf/public_html/libraries/vendor/composer/../../../libraries/src/Factory.php') (/home/usbf/public_html/libraries/vendor/composer/ClassLoader.php:428) at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Factory') (/home/usbf/public_html/libraries/src/Autoload/ClassLoader.php:59) at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Factory') (/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) |