3 class xorgLoginPage
extends dcUrlHandlers
{
4 static public function page($args) {
13 static protected function dispatchForm() {
14 # If we have a session cookie, go to index.php
15 if (isset($_SESSION['sess_user_id']))
17 header('Location: http://murphy.m4x.org/~x2003bruneau/dotclear/admin/index.php');
20 # Loading locales for detected language
21 $dlang = http
::getAcceptLanguage();
23 l10n
::set(dirname(__FILE__
).'/../locales/'.$dlang.'/main');
28 header('Content-Type: text/html; charset=UTF-8');
30 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
31 <html xmlns
="http://www.w3.org/1999/xhtml"
32 xml
:lang
="en" lang
="en">
34 <meta http
-equiv
="Content-Type" content
="text/html; charset=UTF-8" />
35 <meta http
-equiv
="Content-Script-Type" content
="text/javascript" />
36 <meta http
-equiv
="Content-Style-Type" content
="text/css" />
37 <meta http
-equiv
="Content-Language" content
="en" />
38 <meta name
="MSSmartTagsPreventParsing" content
="TRUE" />
39 <meta name
="ROBOTS" content
="NOARCHIVE,NOINDEX,NOFOLLOW" />
40 <meta name
="GOOGLEBOT" content
="NOSNIPPET" />
41 <title
><?php
echo html
::escapeHTML(DC_VENDOR_NAME
); ?
></title
>
44 echo dcPage
::jsLoadIE7();
45 echo dcPage
::jsCommon();
48 <style type
="text/css">
49 @import
url(style
/default.css
);
52 # --BEHAVIOR-- loginPageHTMLHead
53 $core->callBehavior('loginPageHTMLHead');
57 <body id
="dotclear-admin" class="auth">
59 <form action
="xorg.php" method
="post" id
="login-screen">
60 <h1
><?php
echo html
::escapeHTML(DC_VENDOR_NAME
); ?
></h1
>
64 echo '<div class="error">'.$err.'</div>';
67 echo '<p class="message">'.$msg.'</p>';
73 '<p><a href="http://murphy.m4x.org/~x2003bruneau/dotclear/auth/Xorg?path=/~x2003bruneau/dotclear/admin/index.php">Via Polytechnique.org</a></p>' .
74 '<p><a href="http://murphy.m4x.org/~x2003bruneau/dotclear/admin/auth.php">Via le formulaire</a></p>' .
77 '<p>'.__('You must accept cookies in order to use the private area.').'</p>';
79 if ($core->auth
->allowPassChange()) {
80 echo '<p><a href="auth.php?recover=1">'.__('I forgot my password').'</a></p>';
86 <script type
="text/javascript">
88 $
('input[@name="user_id"]').get(0).focus();