Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


(9 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Support

Admin user


You must be signed-in to post.

AuthorSubject
  Page: 1
wilfridoforo
Subject: Admin userQuote this post in your reply
Hi! I'm trying ATutor and a like to put it on a website that I am hosting, I have a problem cause the company who host my website and databases is using the "admin" user, the question is: Is it posible that the superadmin would be a user like "atadmin" intead of "admin", how can i do that?

Regards.

Wil
Posted: 2003-08-29 16:49:48
greg

Avatar for greg
Subject: Change in users/admin.phpQuote this post in your reply
We are going to change the name of the superadmin user in the next release.

For now you can change the name of the superadmin user by editing line 20 in users/admin.php.

change
if (($_POST['form_login'] == 'admin') .....
to
if (($_POST['form_login'] == 'atadmin')

greg
Posted: 2003-08-30 10:37:57
wilfridoforo
Subject: Error msgQuote this post in your reply
Hi!
I changed the line 20 just like you said, and I changed also the member "admin" for "atadmin" in the database, and i got the next error msg,

<img src="http://localhost/atutor/images/error_x.gif" align="top" alt="
Fatal error: Call to undefined function: cache() in c:\program files\apache group\apache\htdocs\atutor\include\vitals.inc.php on line 430

What should i do??
Posted: 2003-09-01 11:38:07
greg

Avatar for greg
Subject: This error is unrelatedQuote this post in your reply
Changing the usernames should not affect caching. I suspect something else has changed. If the problem persists you can comment out the cache line in config.inc.php, or or reinstalling ATutor.

In reply to:
Hi!
I changed the line 20 just like you said, and I changed also the member "admin" for "atadmin" in the database, and i got the next error msg,

Posted: 2003-09-02 09:06:43
wilfridoforo
Subject: About the changesQuote this post in your reply
Hi!
I found that if I change the line

define('DB_HOST', 'localhost');
to
define('DB_HOST', 'www.mysite.com');
or
define('DB_HOST', '120.23.34.23');

is when the system shows that message, by the way If I use the choice localhost the problem dissapear.

The question is:
Is it possible to change the host to an URL or IP Address??
Posted: 2003-09-02 10:41:10
greg

Avatar for greg
Subject: define a protocolQuote this post in your reply
Yes you can use a domain/ip addresses with the http protocol defined (http ://www.mysite.com). You should only need to do this if you are accessing a remote Mysql db, otherwise use localhost.

In reply to:
Hi!
I found that if I change the line

define('DB_HOST', 'localhost');
to
define('DB_HOST', 'www.mysite.com');
or
define('DB_HOST', '120.23.34.23');

is when the system shows...

Posted: 2003-09-02 12:15:53
wilfridoforo
Subject: Error emailQuote this post in your reply
Hi!
The problem dissapear finally, I just put the user and password in the config.inc.php, you could see the ATutor at siaprendi.com/tutor/ it seems to function fine, but now, when i try to register as a user, ATutor displays "Email address was invalid" in all the entries in the email field.

What's the problem?
Regards.
Wil
Posted: 2003-09-02 13:39:24
afmoene
Subject: Call to undefined function: cache()Quote this post in your reply
Fatal error: Call to undefined function: cache() in /var/www/html/ATutor/include/vitals.inc.php on line 430

I got the above error message from the start when I tried to login (Mandrake 9.1, php 4.3.1, ATutor 1.2.2).

I've tried all of the following, to no avail:
* define('CACHE_DIR', ''); in config.inc.php rather than completely uncommented
* change admin user to atadmin in users/admin.php (in database as well)
* downgrade to ATutor 1.2

Any clues? I will be glad to give you more details if needed.

Thanks in advance, Arnold
Posted: 2003-09-06 20:57:44
greg

Avatar for greg
Subject: Create /tmpQuote this post in your reply
If a /tmp directory does not already exist, create one. If you own the system you could locate it in the root directory, or if you are on a hosted system, locate it under the atutor/content directory. Make sure the directory is writable. If mandrake has its own /tmp like directory (I'm not familiar with mardrake's directory structure), then set the CACHE_DIR value to it.

If that does not work try commenting out the cache line in config.inc.php.
Posted: 2003-09-07 13:52:14
 Page: 1

You must be signed-in to post.