Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 04/03/2015 in Posts

  1. Еле еле сделал для 1.5.5.1.2 =) Может кому пригодится :-) 1) Открываем файл /admin/view/template/common/login.tpl и находим строки: <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /> <?php } ?> </form> </div> Добавляем после них <div class="content" style="min-height: 0px; background-color: #fffafa;"> <?php $logfile= 'iplog.html'; $IP = $_SERVER['REMOTE_ADDR']; $logdetails= '<span style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000;">' . date("F j, g:ia") . ' : <a target="_blank" href=http://ipgeobase.ru/?address='.$_SERVER['REMOTE_ADDR'].'>'.$_SERVER['REMOTE_ADDR'].'</a></span>'; $fp = fopen($logfile, "a"); fwrite($fp, $logdetails); fwrite($fp, "<br />"); fclose($fp); ?> <span style="color:green;"><b>Определение IP адреса:</b></span><br /><iplog> <p>Ваш IP адрес (<span style="color:#ff0000;"><strong><?php echo $_SERVER['REMOTE_ADDR']; ?></strong></span>) записан, администрация сайта будет уведомлена о попытке захода в админ панель.</p></iplog> </div> 2) Открываем файл /admin/view/template/common/home.tpl и находим строки: </div> <div class="content"> После них сразу добавляем <div style="float: right; width: 17%; padding-left: 2%;"> <div style="background: #547C96; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 14px; font-weight: bold;">Доступ к Панели управления</div> <div style="background: #FCFCFC; border: 1px solid #8EAEC3; padding: 10px; height: 180px;"> <iframe src="iplog.html" width="100%" height="100%" frameborder="0"> </iframe> </div> </div> 3) Чтобы все правильно отображалось открываем файл admin/view/stylesheet/stylesheet.css находим .overview { float: left; width: 49%; margin-bottom: 20px; } и 49% меняем на 35% далее находим чуток ниже .statistic { float: right; width: 49%; margin-bottom: 20px; } и 49% меняем на 44% 4) После того, как всё сделали, при первом заходе в панель управления, будет создан файл iplog.html (в папке admin), куда будут записываться всё IP адреса. Откройте его и допишите в самом начале строки: <html> <head> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> </head> <body onload="javascript:scroll(0,9999999999999999999)"> <!--/////Для очистки лог файла - удалите все строки ПОСЛЕ ЭТОГО КОММЕНТА!-->
    1 point
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.