To be honest it is not what i thought it would be. Sorry.

To be honest it is not what i thought it would be. Sorry.
You said that before, It works fine for me.Originally Posted by Dude2892
Warning: main(../Connections/MySQL.php): failed to open stream: No such file or directory in /home/habboatt/public_html/beta/install/install2.php on line 1
Warning: main(../Connections/MySQL.php): failed to open stream: No such file or directory in /home/habboatt/public_html/beta/install/install2.php on line 1
Warning: main(../Connections/MySQL.php): failed to open stream: No such file or directory in /home/habboatt/public_html/beta/install/install2.php on line 1
Warning: main(): Failed opening '../Connections/MySQL.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/habboatt/public_html/beta/install/install2.php on line 1
SQL Creation...
Warning: mysql_query(): Access denied for user: 'nobody@localhost' (Using password: NO) in /home/habboatt/public_html/beta/install/install2.php on line 273
Warning: mysql_query(): A link to the server could not be established in /home/habboatt/public_html/beta/install/install2.php on line 273
Install Complete... Please edit config.php and you are ready to go!! If you need to reinstall for any reason please delete install.lck from the install directory.
Warning: rename(install.txt,install.lck): Permission denied in /home/habboatt/public_html/beta/install/install2.php on line 278
failed to copy installer lock file. We recomend you rename install.l to install.lck to prevent this file from being able to run
Lolz Its a 0.1 BETA what do you think its going to be like? Its no where near a final release...Originally Posted by Move-Along
To be honest it is not what i thought it would be. Sorry.
Yes thats because you need to edit Connections/mysql.php ;o with a valid database. It works fine if you install it right.Originally Posted by Dude2892
you hit log in n says no database selected
Edit: Woops sorry for double posting ;[
Last edited by Tomm; 24-04-2006 at 06:24 PM.
just do like
md5($password)
Editing a profile in acp.
Parse error: parse error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/losh/public_html/demo/admin_usr_edit.php on line 107
You are the only one with this problemOriginally Posted by Dude2892
wont even let you log in it just says no database selcted
I know how MD5 somethingOriginally Posted by Luckyrare
just do like
md5($password)
Editing a profile in acp.
Ok ill fix that bug
Edit: Fixed. Please replace all the code in admin_usr_edit.php with:
PHP Code:<?php require_once('Connections/mysql.php');
include('auth_admin.php');
?><?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE users SET username=%s, password=%s, email=%s, permission=%s WHERE id=%s",
GetSQLValueString($_POST['username'], "text"),
GetSQLValueString($_POST['password'], "text"),
GetSQLValueString($_POST['email'], "text"),
GetSQLValueString($_POST['permissions'], "text"),
GetSQLValueString($_POST['id'], "int"));
mysql_select_db($database_mysql, $mysql);
$Result1 = mysql_query($updateSQL, $mysql) or die(mysql_error());
$updateGoTo = "admin_usr.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) {
$pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
}
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;
mysql_select_db($database_mysql, $mysql);
$recordID = $_GET['recordID'];
$query_DetailRS1 = "SELECT * FROM users WHERE id = $recordID";
$query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $mysql) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
if (isset($_GET['totalRows_DetailRS1'])) {
$totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
$all_DetailRS1 = mysql_query($query_DetailRS1);
$totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
}
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<link href="<?php echo $config_style_url; ?>" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="<?php echo $editFormAction; ?>" method="POST" name="form1" class="basictext" id="form1">
<table border="1" align="center">
<tr>
<td>id</td>
<td><?php echo $row_DetailRS1['id']; ?> </td>
</tr>
<tr>
<td>username</td>
<td><?php echo $row_DetailRS1['username']; ?> </td>
</tr>
<tr>
<td>password</td>
<td><input name="password" type="text" id="password" value="<?php echo $row_DetailRS1['password']; ?>" /></td>
</tr>
<tr>
<td>email</td>
<td><input name="email" type="text" id="email" value="<?php echo $row_DetailRS1['email']; ?>" /></td>
</tr>
<tr>
<td>Permission</td>
<td><select name="permissions" id="permissions">
<option value="dj" selected="selected">DJ</option>
<option value="admin">Admin</option>
</select></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit" /></td>
</tr>
</table>
<input name="id" type="hidden" id="id" value="<?php echo $row_DetailRS1['id']; ?>" />
<input name="username" type="hidden" id="username" value="<?php echo $row_DetailRS1['username']; ?>" />
<input type="hidden" name="MM_update" value="form1">
</form>
</body>
</html><?php
mysql_free_result($DetailRS1);
?>
Last edited by Tomm; 24-04-2006 at 06:29 PM.
http://www.losh.co.uk/demo/
Admin - Admin
I have disabled the password change field but if you find a way around it dont mess around.
Thanks,
Danny
Want to hide these adverts? Register an account for free!