I need Auto Login - Magazine Theme

I need Auto Login - Magazine Theme

deur moaid hawadi -
Getal antwoorde: 2

hi 

when enter to the moodle 

this page what directly shown : moodle->index.php

but i want to use index which is exist in

: moodle->login->index.php  it's better for me

so i write this code in index.php which exist in :

moodle->index.php   :

print "<script>";
print " self.location='login/index.php';"; // Comment this line if you don't want to redirect
print "</script>";
echo"<center><img height='100' width='100%' src='15.jpg'/></center>";

 

i write it to transfer me directly to the other index.php which i need it 

when i run it , it's okey but when enter the userid and password and logged in , this message which been shown

Aanhangsel loged_2.jpg
Gemiddeld van beoordelings: -
In antwoord op moaid hawadi

Re: I need Auto Login - Magazine Theme

deur Mary Evans -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Peer reviewers Prentjie van Plugin developers Prentjie van Testers

Why go to all that trouble when you can set your site to take you to the LOGIN page automatically.

There is a setting in Site Administration > Security > Site Policies > Force users to Login

 
 
Mary
 

 

Gemiddeld van beoordelings:Useful (1)
In antwoord op Mary Evans

Re: I need Auto Login - Magazine Theme

deur Mary Cooch -
Prentjie van Documentation writers Prentjie van Moodle HQ Prentjie van Particularly helpful Moodlers Prentjie van Testers Prentjie van Translators

Moaidglimlag I think you have asked the same question in three different forum threads and you have had the same answer (as Mary Evans gave you above) three timesglimlag

Gemiddeld van beoordelings:Useful (1)