Insert Giphy animated stickers and gifs anywhere

Insert Giphy animated stickers and gifs anywhere

Insert animated gifs from Giphy.com similarly as done at Facebook and Twitter. Just enter search terms, click the image and insert the ...

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223
Insert Audio Player and Playlist

Insert Audio Player and Playlist

audio="/images/audio/aswad - just a little herb.mp3" title="Smooth" description="Get the daily vibe right when you tune in to the most thrilling ...

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223
Insert Twitter objects

Insert Twitter objects

Easily insert Twitter page feed, comment or post. section cols2 col-wrap col Page feed twitter ...

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223
Add file download anywhere

Add file download anywhere

section cols2 col-wrap col Easily add one or multiple file download function to articles or any other extension. Just select from a directory ...

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223
Add slideshow with any data type

Add slideshow with any data type

slideshow section cols2 col-wrap col Easily add slideshow to an article and insert images, video or HTML formatted text. The slide function is ...

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Notice: Undefined variable: slideshow in /home/cmsenerg/public_html/modules/mod_cmse_articles_latest/tmpl/_slideshow.php on line 223

Reset Joomla Super Admin Password Remotely

Reset Joomla Super Admin Password Remotely

This form will simplify the process of resetting a Joomla Super User password. When the file is run, it will connect to the Joomla database using the instructions it detects in the configuration.php file, then gather and display the usernames and emails of Super Users found in the _users table. Simply select the user and enter a password, then click the reset button.

userreset.zip (1.64K)file hash value: b0fa9b2366793ebc1787a9e062fbbc37
Download (4776 downloads)

Stuff to note

  • This form is not a Joomla extension so do not try to install it.
  • It will not create a user.
  • It will not delete a user.
  • It will only change the password of Joomla Super User.

Usage

  • Upload the single php file named userreset.php to the root of the Joomla installation, where configuration.php is located.
  • Run the file using the browser by entering the website URL eg: yourdomain.com/userreset.php
  • Select the username from the option select field.
  • Enter the password to reset
  • Delete the file from your host after use.

 

 

joomla super user password reset yool

 

What's in the file

The PHP

$con='';
if( file_exists(dirname(__FILE__).'/configuration.php') ) {
include 'configuration.php';
$con = new JConfig;

	$usertbl = $con->dbprefix.'users';
	$usergrp = $con->dbprefix.'user_usergroup_map';
	
	if( isset($_POST['username']) ) $username = '"'.$_POST['username'].'"';
	if( isset($_POST['password']) ) $password = '"'.MD5($_POST['password']).'"';

	$dbconnect = new mysqli($con->host, $con->user, $con->password, $con->db);
	
	$query = "UPDATE $usertbl SET password = $password WHERE username = $username";
	$users = "SELECT username, email FROM $usertbl LEFT JOIN $usergrp ON $usertbl.id = $usergrp.user_id WHERE group_id = 8";
	
	$res = $dbconnect->query($users);
	if( $res->num_rows > 0 ) {
		while($row = $res->fetch_assoc()) {
			$usr .= '<ul><li>'.$row['username'].'</li><li>'.$row['email'].'</li></ul>';
			$optname .= '<option value="'.$row['username'].'">'.$row['username'].'</option>';
			$opteml .= '<option value="'.$row['email'].'">'.$row['email'].'</option>';
		}
	}
	

	if( $dbconnect->connect_error ) {
		echo '<p style="color:red">DB connection failed: ('.$dbconnect->connect_errno.') '.$dbconnect->connect_error.'<br>The database username and/or password may be incorrect</p>';
		exit();
	}
	if( isset($_POST['username']) ) {
		if( $dbconnect->query($query) === TRUE ) {
			$result = '<p class="success">The connection was successful and the Query ran, however you should try the login to confirm that the change was made.</p>';
		}
	}

}

The HTML

<!DOCTYPE html>
<html>
<head>
<title>Reset</title>
<style>
body {font-family: verdana; font-size: 13px; padding: 0 50px 50px;}
a {text-decoration: none; color: #b22525; font-weight: 900;}
input, select {display: block; border: 1px solid #bbbbbb; padding: 4px; margin-bottom: 5px;}
.notice {background: #ddf7ff; padding: 8px;}
.notice-alert {background: #ffdde1; padding: 8px; font-size: 28px; text-align: center; color: #ce0100; font-weight: 900;}
.success {background: #f1ffdb; padding: 8px;}
input[type="submit"] {cursor: pointer;}
.footnote {text-align: center; background: #f2f2f2; padding: 5px;}
.list {margin: 20px 0;}
.list ul {list-style: none; padding: 0; margin: 0; overflow: hidden;}
.list li {float: left; padding: 5px; border: 1px solid #eeeeee; width: 50%; box-sizing: border-box;}
.list .th {background: #dddddd; font-weight: 900;}
</style>

</head>

<body>
<?php if( !file_exists(dirname(__FILE__).'/configuration.php') ) 
	echo '<p class="notice-alert">The file is not in the Joomla root directory.<br>It must be in the same directory where the configuration.php file is located.</p>'; 
if( !empty($dbconnect->stat) ) echo '<b>database connection OK</b>';
?>
<form action="" method="post">
<p class="notice">The purpose of this tool is to <b>reset the uername and password for a Joomla Super user</b></p>

<p class="notice-alert">It is absolutely important that you delete this file after use</p>

<?php echo $result; ?>

<div class="list">
<h4>List of Super Users Found In Database</h4>
<ul class="th"><li>Username</li><li>Email</li></ul>
<?php echo $usr; ?>
</div>

<hr />
<h3>Username and Password reset</h3>

Username*<br /><small>Select the user name</small> 
<select name="username" required="required">
<option value="">Select</option>
<?php echo $optname; ?>
</select>
New Password* <input type="text" name="password" size="40" value="" required="required" />
<input type="submit" value="Reset User Login Details" />

</form>
<p class="footnote"><a href="http://websitedons.com">WebsiteDons.com</a></p>
</body>
</html>
Copyright © 2020 CMSEnergizer.com. All Rights Reserved.
This website is powered by the Joomla!©™ 3 Website Framework | File download and article manager component by CMSE Custom Fields | Website hosting and development by WebsiteDons

CMSEnergizer.com is owned and operated by Emuzement Net Inc, Tampa, Florida USA