Dotclear


Ignore:
Timestamp:
06/19/14 16:56:47 (11 years ago)
Author:
Dsls
Branch:
default
Message:

One step further towards php hardcoded links annihilation in admin sources, more to come...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r2566 r2720  
    1616if (isset($_SESSION['sess_user_id'])) 
    1717{ 
    18      http::redirect('index.php'); 
     18     http::redirect($core->adminurl->get('admin.home')); 
    1919} 
    2020 
     
    185185          } 
    186186 
    187           http::redirect('index.php'); 
     187          http::redirect($core->adminurl->get('admin.home')); 
    188188     } 
    189189     catch (Exception $e) 
     
    243243          } 
    244244 
    245           http::redirect('index.php'); 
     245          http::redirect($core->adminurl->get('admin.home')); 
    246246     } 
    247247     else 
     
    326326<body id="dotclear-admin" class="auth"> 
    327327 
    328 <form action="auth.php" method="post" id="login-screen"> 
     328<form action="<?php echo $core->adminurl->get('admin.auth'); ?>" method="post" id="login-screen"> 
    329329<h1><?php echo html::escapeHTML(DC_VENDOR_NAME); ?></h1> 
    330330 
     
    339339if ($akey) 
    340340{ 
    341      echo '<p><a href="auth.php">'.__('Back to login screen').'</a></p>'; 
     341     echo '<p><a href="'.$core->adminurl->get('admin.auth').'">'.__('Back to login screen').'</a></p>'; 
    342342} 
    343343elseif ($recover) 
     
    356356 
    357357     '<div id="issue">'. 
    358      '<p><a href="auth.php">'.__('Back to login screen').'</a></p>'. 
     358     '<p><a href="'.$core->adminurl->get('admin.auth').'">'.__('Back to login screen').'</a></p>'. 
    359359     '</div>'; 
    360360} 
     
    426426          if ($safe_mode) { 
    427427               echo 
    428                '<p><a href="auth.php" id="normal_mode_link">'.__('Get back to normal authentication').'</a></p>'; 
     428               '<p><a href="'.$core->adminurl->get('admin.auth').'" id="normal_mode_link">'.__('Get back to normal authentication').'</a></p>'; 
    429429          } else { 
    430430               echo '<p id="more"><strong>'.__('Connection issue?').'</strong></p>'; 
    431431               if ($core->auth->allowPassChange()) { 
    432                     echo '<p><a href="auth.php?recover=1">'.__('I forgot my password').'</a></p>'; 
     432                    echo '<p><a href="'.$core->adminurl->get('admin.auth',array('recover' => 1)).'">'.__('I forgot my password').'</a></p>'; 
    433433               } 
    434                echo '<p><a href="auth.php?safe_mode=1" id="safe_mode_link">'.__('I want to log in in safe mode').'</a></p>'; 
     434               echo '<p><a href="'.$core->adminurl->get('admin.auth',array('safe_mode' => 1)).'" id="safe_mode_link">'.__('I want to log in in safe mode').'</a></p>'; 
    435435          } 
    436436 
Note: See TracChangeset for help on using the changeset viewer.

Sites map