Beispiel #1
0
        <br />
        <br />

        <div style="text-align: center">
        <button type="submit">Reset Access</button>
        </div>
      </div>
      </form>
    {else}
      <div class="notice margin-bottom margin-top">
        The default control panel administrator account has been restored. Use the information below to login to the control panel.
      </div>

      <div class="warn margin-bottom margin-top">
        Be sure to remove this file from your server after you write down your username and password
      </div>

      <b>Control Panel URL:</b> <a href="{\$control_panel}">{\$control_panel}</a><br />
      <b>Username:</b> administrator<br />
      <b>Password:</b> {\$password|htmlspecialchars}
    {/if}
  </div>
</div>


</body>
</html>
TEMPLATE;
ResetPassword();
$DB->Disconnect();
Beispiel #2
0
function PHPOperation($Action)
{
    switch ($Action) {
        case "UnitTest":
            UnitTest($Action);
            break;
        case "AddAccount":
            AddAccount($Action);
            break;
        case "SignIn":
            SignIn($Action);
            break;
        case "SignInPet":
            SignInPet($Action);
            break;
        case "SignOut":
            SignOut($Action);
            break;
        case "FetchErrors":
            FetchErrors($Action);
            break;
        case "AddError":
            AddError($Action);
            break;
        case "FetchActivities":
            FetchActivities($Action);
            break;
        case "FetchSignInPet":
            FetchSignInPet($Action);
            break;
        case "FetchBreeds":
            FetchBreeds($Action);
            break;
        case "ValidateSession":
            ValidateSession($Action);
            break;
        case "ResetPassword":
            ResetPassword($Action);
            break;
        case "UpdatePassword":
            UpdatePassword($Action);
            break;
        case "AddPet":
            AddPet($Action);
            break;
        case "AddBreed":
            AddBreed($Action);
            break;
        case "FetchUsers":
            FetchUsers($Action);
            break;
        case "FetchUserPets":
            FetchUserPets($Action);
            break;
        case "FetchUserStatus":
            FetchUserStatus($Action);
            break;
        case "FetchPetStatus":
            FetchPetStatus($Action);
            break;
        case "FetchPet":
            FetchPet($Action);
            break;
        case "UpdateAccountStatus":
            UpdateAccountStatus($Action);
            break;
        case "UpdatePetStatus":
            UpdatePetStatus($Action);
            break;
        case "UpdatePetName":
            UpdatePetName($Action);
            break;
        case "UpdatePetBreed":
            UpdatePetBreed($Action);
            break;
        case "UpdatePetGender":
            UpdatePetGender($Action);
            break;
        case "UpdateBreed":
            UpdateBreed($Action);
            break;
        case "FetchPetNameCount":
            FetchPetNameCount($Action);
            break;
        case "FetchUserEmail":
            FetchUserEmail($Action);
            break;
    }
}
Beispiel #3
0
</th></tr>
		</table>
		<?php 
ListAdmins();
?>
	</td>
	<td class="panel-box">
<?php 
if (isset($_GET['edit'])) {
    $user_id = $_GET['edit'];
    EditAdmin($user_id);
} else {
    if (isset($_GET['delete'])) {
        $user_id = $_GET['delete'];
        DeleteAdmin($user_id);
    } else {
        if (isset($_GET['create'])) {
            NewAdmin();
        } else {
            if (isset($_GET['resetpassword'])) {
                $user_id = $_GET['resetpassword'];
                ResetPassword($user_id);
            }
        }
    }
}
?>
	</td>
	</tr>
</table>
Beispiel #4
0
mysql_select_db($GLOBALS['cfg']['mysqldatabase']) or die("Could not select database<br>");
/* ----- determine which action to take ----- */
switch ($action) {
    case 'create':
        $msg = CreateAccount($email, $firstname, $midname, $lastname, $institution, $instance, $country, $password);
        if ($msg != "") {
            DisplayForm($msg, $email, $firstname, $midname, $lastname, $institution, $instance, $country);
        } else {
            DisplaySuccessMessage($email, $firstname, $midname, $lastname, $institution, $instance, $country, $password);
        }
        break;
    case 'r':
        ResetPasswordForm("");
        break;
    case 'rp':
        ResetPassword($e);
        break;
    default:
        DisplayForm("");
}
/* -------------------------------------------- */
/* ------- DisplaySuccessMessage -------------- */
/* -------------------------------------------- */
function DisplaySuccessMessage($email, $name, $institution, $country, $password)
{
    ?>
		<div align="center">
		<br><br>
		<b>Thank you for signing up</b><br><br>
		An email has been sent to &lt;<?php 
    echo $email;