This topic is locked

admin password

8/29/2006 9:15:43 AM
PHPRunner General questions
B
bluestrikealpha author

I am a complete newbie with PHP and mysql but I do not seem to get an admin password in the security tab.

This is only when I choose a user from the database. Do I have to fill the user database before building with PHPrunner with another program? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=3292&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />

F
frocco 8/29/2006

if you are not hardcoding the username and password, I believe you must have the database populated first.
HTH
Frank

I am a complete newbie with PHP and mysql but I do not seem to get an admin password in the security tab.

This is only when I choose a user from the database. Do I have to fill the user database before building with PHPrunner with another program? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=10742&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

B
bluestrikealpha author 8/29/2006

if you are not hardcoding the username and password, I believe you must have the database populated first.

HTH
Frank



But How do I hardcode it?



But How do I hardcode it?



I have been stupid, I have build it with the option user from database, and now I can not connect anymore.

Help???

F
frocco 8/29/2006

Did you not build it with the option to register?

Under the security tab, you can toggle the Hardcoded or table security.
Frank

B
bluestrikealpha author 8/29/2006

Did you not build it with the option to register?

Under the security tab, you can toggle the Hardcoded or table security.
Frank


I used the table option from the users table (which was not filled)
Now when I start with PHPrunner I can't change it anymore because it wants to connect first, before moving on

B
bluestrikealpha author 8/29/2006



I used the table option from the users table (which was not filled)
Now when I start with PHPrunner I can't change it anymore because it wants to connect first, before moving on



By the way, i did not use the option to register, (very clever) maybe I should delete dbconnections on my linux server?

A
amirgulamali 8/29/2006

if your database connects and you do not have usernames and passwords in your USERS tables.

Click on the "register" link from the login page and make usernames and passwords.
However if you do not have a "register" link on the login page... just type /register.php on your web browser after your domain name.
For instance:

www.mysite.com'>www.mysite.com/register.php
Note that the login address is something like:

www.mysite.com'>www.mysite.com/login.php

If im not mistaken, the page register.php is always there in all projects!
-----------------------------------------------------------------------------------------------------------------
However if your database fails to connect,then thats a complete different issue... this forum has many useful threads regarding database connections.
Goodluck

Amir

Admin 8/30/2006

Dion,
you confuse two types of logins here - database login and site login.

When you start PHPRunner you need to enter your MySQL username and password - the same you entered the first time starting PHPRunner.
On the Security tab in PHPRunner you set the site username and password.

They can be hardcoded or taken from the database. In the latter case you can turn on Regisrtration page to fill the Usersa table if it's empty. To create Registration page click User login settings button.

These usernames and passwords will be used by the users to visit your PHPRunner-created site.

B
bluestrikealpha author 8/30/2006

Dion,

you confuse two types of logins here - database login and site login.

When you start PHPRunner you need to enter your MySQL username and password - the same you entered the first time starting PHPRunner.
On the Security tab in PHPRunner you set the site username and password.

They can be hardcoded or taken from the database. In the latter case you can turn on Regisrtration page to fill the Usersa table if it's empty. To create Registration page click User login settings button.

These usernames and passwords will be used by the users to visit your PHPRunner-created site.


The point is that if you create a registration page, the system will be unsafe; everybody can make their own username and password. There also should be a warning in the system that if you do not have one user filled in, the system will not be accessable when you try to use the admin account. And you can simply take www.localhost/register.php to fill in your name even if you do not want a registration page?
Another question is if I add image fields to one table by using mediumblob and database image, I do not see the fields in the final database. What can I do to solve this?

J
Jane 8/30/2006

Dion,
you can create register page, fill users table and then remove this register.php file.

Also you can fill users table directly in the database using third-party tools, phpMyAdmin for example:

http://www.phpmyadmin.net/home_page/downloads.php
It seems that you didn't check these new fields on the [bChoose fields[/b] tab.

Also you need to select Database Image for image field in the View as and Edit as dropdown boxes on the Formatting tab.

B
bluestrikealpha author 8/30/2006

Dion,

you can create register page, fill users table and then remove this register.php file.

Also you can fill users table directly in the database using third-party tools, phpMyAdmin for example:

http://www.phpmyadmin.net/home_page/downloads.php
It seems that you didn't check these new fields on the [bChoose fields[/b] tab.

Also you need to select Database Image for image field in the View as and Edit as dropdown boxes on the Formatting tab.



Thanks jane,
You're wonderfull!!!

It works
Dion