diff --git a/admin/themes/admin/login.htm b/admin/themes/admin/login.htm new file mode 100644 index 0000000..46082cc --- /dev/null +++ b/admin/themes/admin/login.htm @@ -0,0 +1,89 @@ + + + + gelato :: {__("login screen")} + + + + + + + + + + + + +
+ +
+ +
+ + +
+ +
+ {if $redirect_url} + + + {/if} +
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
+ + {if $error==1} +
+ {__(" You must be registered to use gelato.")} +
+ {elseif $error==2} +
+ {__(" You must be logged on the system.")} +
+ {/if} +
+ + +
+
+ +
+ + diff --git a/login.php b/login.php index 4c39a39..ccb64e7 100644 --- a/login.php +++ b/login.php @@ -33,103 +33,16 @@ if ($user->isAuthenticated()) { header("Location: ".$conf->urlGelato."/login.php?error=1"); exit(); } - } else { -?> - - - - gelato :: <?php echo __("login screen")?> - - - - - - - - - - - - -
- -
- -
- - -
- -
- " : ""; ?> -
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
- -
- -
- -
- -
- -
- - -
-
- -
- - -set('version',util::version()); + $theme->set('redirect_url',(isset($_GET['redirect_url'])?$_GET['redirect_url']:'')); + $theme->set('sel',(isset($_GET['sel'])?$_GET['sel']:'')); + $theme->set('error',(isset($_GET['error'])?$_GET['error']:'')); + $theme->set('conf',array( + "urlGelato"=>$conf->urlGelato + )); + $theme->display(Absolute_Path.'admin/themes/admin/login.htm'); } } -?> \ No newline at end of file +?>