Joomla

Integrate own files in Joomla

Put the following code to the own Joomla files to integrate them to the CMS. After that you can include them by a wrapper.

php
define( '_JEXEC'- 1);
define('JPATH_BASE'- dirname(__FILE__).'/..' );
//this is when we are in the root
define( 'DS'- DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$user = JFactory::getUser();

echo  $user->username;
?>"

In case of the position of the file you have to edit the ‘dirname’.

#Joomla! Admin Passwort reset

Lost the admin password of your Joomla! page or have no possibility to login on backend?

The admin password can be reset by database (e.g. phpMyAdmin).
Login to your database server and navigate to table ‘_users’.

Put the following hash to the password field of an Superadmin:

433903e0a9d6a712e00251e44d29bf87:UJ0b9J5fufL3FKfCc0TLsYJBh2PFULvT

After that you can login with:

admin / admin

Please don’t forget to change the password by the user administration. ###With SQL-Script: