Вход Регистрация
Файл: index.php
Строк: 133
<?

include $_SERVER['DOCUMENT_ROOT']."/template/head.php";
if(!isset(
$id))
{
?>
            
                <div id="mcont" class="mcont">    
                    <div class="pcont login bl_cont">
                        <div class="panel prof_panel">
                            <div>Мобильная версия поможет Вам оставаться В Контакте, даже если Вы далеко от компьютера.</div>
                        </div>
                        <div class="cont">
                            <form method="post" action="enter.php">
                                <dl>
                                    <dt>email:</dt>
                                    <dd class="iwrap"><input type="text" name="mail" class="text" value="" /></dd>
                                </dl>
                                <dl>
                                    <dt>Пароль:</dt>
                                    <dd class="iwrap"><input type="password" name="pass" class="text" /></dd>
                                </dl>
                                <dl>
                                    <dd>
                                        <div class="near_box">
                                            <input class="btn" type="submit" value="Войти" />
                                            <div class="near_btn"><a href="pass.php">Забыли пароль?</a></div>
                                        </div>
                                    </dd>
                                </dl>
                            </form>
                            <dl>
                                <dd><a class="join_btn" href="reg.php">Зарегистрироваться</a></dd>
                            </dl>
                        </div>
                    </div>
                </div>
<?
}
else
{
    
$str mysql_fetch_array(mysql_query("select * from `prof` where `id`='$id'")) or die(mysql_error());



?>
<!--
        <div class="mhead qs_enabled">
            <div class="head_search">
                <form action="/search" class="oneline qsearch with_icon with_clear">
                    <input type="hidden" name="act" value="global">
                    <table>
                        <tr>
                            <td width="100%">
                                <i class="search" onclick="elfocus('lm_search_field');"></i>
                                <div id="lm_search_clear" class="clear_btn" onclick="return lm_qsearch.clear(event, true);"></div>
                                <div class="iwrap">
                                    <input id="lm_search_field" type="text" class="text" name="q" value="" autocomplete="off" placeholder="Поиск">
                                </div>
                            </td>
                            <td class="last"><input class="btn" type="button" value="Отмена" onclick="menu.cancelSearch();" /></td>
                        </tr>
                    </table>
                </form>
            </div>
            <div class="btn logo">
                <a href="/" class="b" onclick="return menu.headerAction(event);">
                    <span class="bottom"></span>
                    <i></i>
                </a>
            </div>
        </div>
-->


        <div id="lm_search_items" class="m_search_items"></div>
        <div id="lm_cont" class="m_search_cont">
            <div class="pcont main">
                <div id="lm_top_notify"></div>
                <div id="lm_prof_panel">
                    <div class="panel prof_panel al_u">
                        <div class="user_wrap">
                            <a class="foto.php?id=<?=$str[id]?>" href="?">
                                <img src="<?echo'data/photo/'.$id.'/'.$str[foto];?>" class="u _u" align="left" />
                            </a>
                            <i class="arr"></i>
                            <div class="cont">
                                <h2>
                                    <a class="al_u aluser user" href="wall.php?id=<?=$str[id]?>" data-name="<?=$str[name]?> <?=$str[fam]?>" data-photo="<?echo'data/photo/'.$id.'/'.$str[foto];?>"><?=$str[name]?> <?=$str[fam]?></a>
                                    <? online($id); ?>
                                </h2>
                                <div class="status">
                                    <? status(); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <ul class="main_menu">
                    <li class="friends">
                        <a href="drug.php" class="al_menu" data-header="Мои друзья">
                            <i></i>
                            <?$count_add_drug=mysql_result(mysql_query("select count(*) from `drug_add` where `id_user`='$id'"),0);?>
                            <span class="wrap"><span class="label">Мои Друзья</span><?if($count_add_drug!=0){?><em><?=$count_add_drug?></em><?}?></span>
                        </a>
                    </li>
                    <!--<li class="photos">
                        <a href="/photos45204147" class="al_menu" data-header="Михаил">
                            <i></i>
                            <span class="wrap"><span class="label">Мои Фотографии</span></span>
                        </a>
                    </li>-->
                    <li class="mail">
                        <a href="/priv.php" class="al_menu" data-header="Сообщения">
                            <i></i>
                            <span class="wrap"><span class="label">Мои Сообщения</span></span>
                        </a>
                    </li>
                    <!--<li class="feed">
                        <a href="/feed" class="al_menu" data-header="Новости">
                            <i></i>
                            <span class="wrap"><span class="label">Мои Новости</span></span>
                        </a>
                    </li>
                    <li class="answers">
                        <a href="/feed?section=notifications" class="al_menu" data-header="Ответы">
                            <i></i>
                            <span class="wrap"><span class="label">Мои Ответы</span><em>1</em></span>
                        </a>
                    </li>
                    <li class="groups">
                        <a href="/groups" class="al_menu" data-header="Мои сообщества">
                            <i></i>
                            <span class="wrap"><span class="label">Мои Группы</span></span>
                        </a>
                    </li>-->
                    <li class="search">
                        <a href="user.php" class="al_menu" data-header="Поиск">
                            <i></i>
                            <span class="wrap"><span class="label">Поиск друзей</span></span>
                        </a>
                    </li>
                    <li class="logout">
                        <a href="/?exit">
                            <i></i>
                            <span class="wrap"><span class="label">Выход</span></span>
                        </a>
                    </li>
                </ul>
                <div id="lm_player" class="player">
                    <div id="lm_audio" class="audio al_player" data-href="#player" onclick="return audioplayer.openPlayer(this);">
                        <div class="play" onclick="audioplayer.playPause(); cancelEvent(event);"><i></i></div>
                        <div class="audio_cont">
                            <i class="arr"></i>
                            <div class="audio_label">
                                <div class="artist"></div>
                                <div class="title"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="lm_bottom_notify"></div>
            </div>
            <div class="mfoot">
                <ul class="main_menu">
                    <a href="web-master.php">
                            <i></i>
                            <span class="wrap"><span class="label">Web-Мастерам</span></span>
                    </a>
                </ul>
            </div>
        </div>




<?

}


include 
$_SERVER['DOCUMENT_ROOT']."/template/foot.php";
?>
Онлайн: 2
Реклама