Кто шарит в php?  - Школа Читера  - Основы основ - начинаем писать статьи для начинающих с целью создания полноценного раздела  
	 
	
	
	
	
	
	
	
	
	
	
	
	
 
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 13:48
            
            
         
        
             
            #1  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Разведчик
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.04.2011
 
                
                
                
                Сообщений: 12
                
  
Популярность: 81
 
                  
	Сказал(а) спасибо: 19
 
	
		
			
				Поблагодарили 44 раз(а) в 27 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Кто шарит в php? 
             
             
            
        
        
        
            
               
    Привет я только начал изучать php 
 хочу создать сайт
,скачал шаблон запустил через Denwer,и при регистрации нет строк
[
Ссылки могут видеть только зарегистрированные пользователи.   ] и на хосте тоже
ещё проблема,не регестрируется))
ещё при входе в админку(дали лог,пасс)такая фигня [
Ссылки могут видеть только зарегистрированные пользователи.   ]
буду очень благодарен помощи)))
 
Добавлено через 1 час 46 минут 
Кто поможет таму дам шаблон любой соц сети(ну почти любой)
     
        
 
        
        
        
        
        
        
        
        
            
                 
                
                    
                        Последний раз редактировалось Vadikchuv42; 25.07.2011 в 15:35 .
                    
                    
                        Причина: Добавлено сообщение
                    
                
            
        
        
       
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 17:50
            
            
         
        
             
            #2  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Пехотинец
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.07.2011
 
                
                
                
                Сообщений: 97
                
  
Популярность: 2528
 
                  
	Сказал(а) спасибо: 61
 
	
		
			
				Поблагодарили 336 раз(а) в 61 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
            
               
    поройся в сорце. наверное, там другой логинпасс от админки. и лучше попробуй написать что-нибудь сам
  
        
        
          
                
                
                  
                        
                         
                        
                        Цитата:  
                        
                         
                   
                
                 
                
                 
                
                
                
                 
                
                
                
                 
           
        
        
          
                
                 
                 
                
                 
           
          
                
                 
                
                Кто поможет таму дам шаблон любой соц сети 
                 
                
                 
           
          
                
                 
                
                 
                
                 
           
        
         
   
да кому это нужно. в гугле их 
туева хуча  очень много. да и сейчас есть вконтакт и одноклассники. не вижу смысла создавать ещё 1
     
        
 
        
        
        
        
        
        
        
     
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 18:24
            
            
         
        
             
            #3  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Пехотинец
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.07.2011
 
                
                
                
                Сообщений: 97
                
  
Популярность: 2528
 
                  
	Сказал(а) спасибо: 61
 
	
		
			
				Поблагодарили 336 раз(а) в 61 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
        
        
        
        
        
        
        
     
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
	
		
			
				
					Пользователь сказал cпасибо: 
				
				
				
			 
			 
		 
	
  
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 18:31
            
            
         
        
             
            #4  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Разведчик
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.04.2011
 
                
                
                
                Сообщений: 12
                
  
Популярность: 81
 
                  
	Сказал(а) спасибо: 19
 
	
		
			
				Поблагодарили 44 раз(а) в 27 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
            
               
    
  
        
        
          
                
                
                  
                        
                         
                        
                        Цитата:  
                        
                         
                   
                
                 
                
                 
                
                
                
                 
                
                
                
                 
           
        
        
         
   
Мне самое главное понять как чё а там до мазгую,как и html мне просто показали как ссылки на страницу ставить и как подписать и я уже через 1-2 недели во всю струтил)) сайты))
     
        
 
        
        
        
        
        
        
        
     
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 18:36
            
            
         
        
             
            #5  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Пехотинец
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.07.2011
 
                
                
                
                Сообщений: 97
                
  
Популярность: 2528
 
                  
	Сказал(а) спасибо: 61
 
	
		
			
				Поблагодарили 336 раз(а) в 61 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
            
               
    
  
        
        
          
                
                
                  
                        
                         
                        
                        Цитата:  
                        
                         
                   
                
                 
                
                 
                
                
                
                 
                
                
                
                 
           
        
        
          
                
                 
                 
                
                 
           
          
                
                 
                
                Мне самое главное понять как чё а там до мазгую,как и html мне просто показали как ссылки на страницу ставить и как подписать и я уже через 1-2 недели во всю струтил)) сайты)) 
                 
                
                 
           
          
                
                 
                
                 
                
                 
           
        
         
   
смотри на php.su
вот Hello World:
	PHP код:
	
		
			
<?php
 print  "Hello World!" ;
 ?> 
 
		
	
 
     
         
        
        
        
        
        
        
        
     
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            25.07.2011, 18:42
            
            
         
        
             
            #6  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Разведчик
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 16.04.2011
 
                
                
                
                Сообщений: 12
                
  
Популярность: 81
 
                  
	Сказал(а) спасибо: 19
 
	
		
			
				Поблагодарили 44 раз(а) в 27 сообщениях
			
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
            
               
    
)))))))))))))))))это и так понятно
Добавлено через 2 минуты 
Лучше помоги может здесь эти строчки не до писаны))))
	PHP код:
	
		
			
<?php  /* Smarty version 2.6.14, created on 2008-07-17 18:19:22
          compiled from header.tpl */  ?>
 <?php  require_once( SMARTY_CORE_DIR  .  'core.load_plugins.php' );
 smarty_core_load_plugins (array( 'plugins'  => array(array( 'function' ,  'array' ,  'header.tpl' ,  51 ,  false ),)),  $this );  ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="vkontakte">
 <html>
 <head>
 <title><?php  echo  $this -> _tpl_vars [ 'global_page_title' ];  ?>
 </title>
 <base href='<?php  echo  $this -> _tpl_vars [ 'url' ]-> url_base ;  ?>
 '>
 <link rel="stylesheet" href="./templates/styles.css">
 <link rel="stylesheet" href="./css/menu.css">
 <link rel="stylesheet" href="./templates/group.css">
 <link rel="stylesheet" href="./templates/std.css">
 <link rel="stylesheet" href="css/rustyle.css" type="text/css">
 <link rel='stylesheet' href='css/profile.css' type='text/css'>  
 <link rel='stylesheet' href='css/typeahead.css' type='text/css' />
<?php  if ( $this -> _tpl_vars [ 'profilepage' ] !=  1 ):  ?>
 <link rel='stylesheet' href='css/dialog2.css' type='text/css' />
 <link rel='stylesheet' href='css/rustylex.css' type='text/css' />
 <link rel='stylesheet' href='css/mail2.css' type='text/css' />
 <link rel='stylesheet' href='css/box.css' type='text/css' />
<?php  endif;  ?>
 
 <script src='js/simpleajax.js'></script>
 
 <script src='js/ajax.js'></script>
 <script src='js/activity.js'></script>
 <script src="js/functions.js?5"></script>
 <script src="js/niftycube.js"></script>
 <script src="js/1.js"></script>
 <script src="js/menu.js"></script>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
 
 <!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(css/ie.css); /* ]]> */</style><![endif]-->
 <!--[if gte IE 7]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(css/ie7.css); /* ]]> */</style><![endif]-->
 
 <script type="text/javascript" src="./include/js/tips.js"></script>
 <script type="text/javascript" src="./include/js/showhide.js"></script>
 <script type="text/javascript" src="./include/js/suggest.js"></script>
 <script type="text/javascript" src="./include/js/status.js"></script>
 <script type="text/javascript" src="./include/js/dropdown.js"></script>
 <link href="/favicon.ico" rel="shortcut icon">
 <script type="text/javascript" language="javascript" src="./include/js/behavior.js"></script>
 <script type="text/javascript" language="javascript" src="./include/js/rating.js"></script>
 <link rel="stylesheet" type="text/css" href="./templates/rating.css" />
<?php  unset( $this -> _sections [ 'header_loop' ]);
 $this -> _sections [ 'header_loop' ][ 'name' ] =  'header_loop' ;
 $this -> _sections [ 'header_loop' ][ 'loop' ] =  is_array ( $_loop = $this -> _tpl_vars [ 'global_plugins' ]) ?  count ( $_loop ) :  max ( 0 , (int) $_loop ); unset( $_loop );
 $this -> _sections [ 'header_loop' ][ 'show' ] =  true ;
 $this -> _sections [ 'header_loop' ][ 'max' ] =  $this -> _sections [ 'header_loop' ][ 'loop' ];
 $this -> _sections [ 'header_loop' ][ 'step' ] =  1 ;
 $this -> _sections [ 'header_loop' ][ 'start' ] =  $this -> _sections [ 'header_loop' ][ 'step' ] >  0  ?  0  :  $this -> _sections [ 'header_loop' ][ 'loop' ]- 1 ;
 if ( $this -> _sections [ 'header_loop' ][ 'show' ]) {
      $this -> _sections [ 'header_loop' ][ 'total' ] =  $this -> _sections [ 'header_loop' ][ 'loop' ];
     if ( $this -> _sections [ 'header_loop' ][ 'total' ] ==  0 )
          $this -> _sections [ 'header_loop' ][ 'show' ] =  false ;
 } else
      $this -> _sections [ 'header_loop' ][ 'total' ] =  0 ;
 if ( $this -> _sections [ 'header_loop' ][ 'show' ]):
 
             for ( $this -> _sections [ 'header_loop' ][ 'index' ] =  $this -> _sections [ 'header_loop' ][ 'start' ],  $this -> _sections [ 'header_loop' ][ 'iteration' ] =  1 ;
                   $this -> _sections [ 'header_loop' ][ 'iteration' ] <=  $this -> _sections [ 'header_loop' ][ 'total' ];
                   $this -> _sections [ 'header_loop' ][ 'index' ] +=  $this -> _sections [ 'header_loop' ][ 'step' ],  $this -> _sections [ 'header_loop' ][ 'iteration' ]++):
 $this -> _sections [ 'header_loop' ][ 'rownum' ] =  $this -> _sections [ 'header_loop' ][ 'iteration' ];
 $this -> _sections [ 'header_loop' ][ 'index_prev' ] =  $this -> _sections [ 'header_loop' ][ 'index' ] -  $this -> _sections [ 'header_loop' ][ 'step' ];
 $this -> _sections [ 'header_loop' ][ 'index_next' ] =  $this -> _sections [ 'header_loop' ][ 'index' ] +  $this -> _sections [ 'header_loop' ][ 'step' ];
 $this -> _sections [ 'header_loop' ][ 'first' ]      = ( $this -> _sections [ 'header_loop' ][ 'iteration' ] ==  1 );
 $this -> _sections [ 'header_loop' ][ 'last' ]       = ( $this -> _sections [ 'header_loop' ][ 'iteration' ] ==  $this -> _sections [ 'header_loop' ][ 'total' ]);
   $_smarty_tpl_vars  =  $this -> _tpl_vars ;
 $this -> _smarty_include (array( 'smarty_include_tpl_file'  =>  "header_" .( $this -> _tpl_vars [ 'global_plugins' ][ $this -> _sections [ 'header_loop' ][ 'index' ]]). ".tpl" ,  'smarty_include_vars'  => array()));
 $this -> _tpl_vars  =  $_smarty_tpl_vars ;
 unset( $_smarty_tpl_vars );
   endfor; endif;  ?>  
<?php  echo  smarty_function_array (array( 'var'  =>  'global_plugin_menu' , 'value'  =>  '' ),  $this ); ?>
 
 
 <style type='text/css'><?php  echo  $this -> _tpl_vars [ 'global_css' ];  ?>
 </style>
 
 </head>
 <body>
 <layer name="lenta" top=0 left=0 >
 <nolayer>
 <div style="position:absolute; top:0; left:0;">
 </nolayer>
 <img src="/images/logotip.png" align="right" border="0">
 <nolayer>
 </div>
 </nolayer>
 </layer>
 
 
 <div id="pageLayout">
 
 
 
 <!-- pageHeader -->
 
   <div id="pageHeader">
 
    <h1 id="home"><a href="index.php">ВСети</a></h1>
<?php  if ( $this -> _tpl_vars [ 'user' ]-> user_exists  !=  0 ):  ?>
  <div id="quickSearch">
     <form method="POST" action="search.php" name="qsearch">
      <input class="inputText inputSearch" type="search" id="quickquery" name="search_text" size="15" placeholder="Поиск"/>
      <input type="hidden" id="act" name="task" value="dosearch" />
      <input style="display: none;" class="inputSubmit" type="submit" value="Go" />
      <script type="text/javascript">
       //<![CDATA[
       placeholderSetup('quickquery');
       //]]>
      </script>
     </form>
  </div>
<?php  endif;  if ( $this -> _tpl_vars [ 'user' ]-> user_exists  !=  0 ):  ?>
 <ul class="topNav">
  <li style="width:0.2em"></li>
  <li style="width:5.2em"><a href='user_logout.php'>выйти</a></li>
  <li style="width:7.3em"><a href='invite.php'>пригласить</a></li>
 <li style="width:4.7em"><a href='popular.php'>люди</a></li>
  <li style="width:6em"><a href='user_event_browse.php'>события</a></li>
  <li style="width:5.2em"><a href='user_group_browse.php'>группы</a></li>
  <li style="width:4.8em"><a href='search.php'>поиск</a></li>
  <li style="width:6.0em"><a href='<?php  echo  $this -> _tpl_vars [ 'url' ]-> url_create ( 'profile' , $this -> _tpl_vars [ 'user' ]-> user_info [ 'user_username' ]);  ?>
 '>главная</a></li>
 </ul>
<?php  else:  ?>  
 <ul class="topNav">
  <li style="width:0.2em"></li>
  <li style="width:5.8em"><a href='help.php'>помощь</a>
  <li style="width:7.9em"><a href='signup.php'>регистрация</a></li>
  <li style="width:4.8em"><a href='login.php'>вход</a></li>
 </ul>
<?php  endif;  ?>
 
   </div>
 
 <!-- End pageHeader -->
 
 
 
 
 <!-- sideBar -->
 
<?php  if ( $this -> _tpl_vars [ 'homepage' ] !=  1 ):  ?> <div id="sideBar">
<?php  if ( $this -> _tpl_vars [ 'user' ]-> user_exists  !=  0 ):  ?>
   
       <ol id='nav'>
 <div class="ddcontent" id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)">
     <div class="ddinner">
       <ul>
         
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=1'">Весенний гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=2'">Гороскоп ароматов</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=3'">Гороскоп темперамента</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=4'">Спортивный гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=5'">Карьерный гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=6'">Бизнес гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=7'">Денежный гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=8'">Гороскоп взаимоотношений</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=9'">Гороскоп для мужчин</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=10'">Гороскоп для женщин</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=11'">Гороскоп для девушки</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=12'">Гороскоп для парня</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=13'">Семейный гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=14'">Родительский гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=15'">Детский гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=16'">Романтический гороскоп</li>
         <li class="underline" onClick="parent.location.href='/other/?smsp=free&smsi=17'">Эротический гороскоп</li>
 
       </ul>
     </div>
   </div>
 
     <li id='myprofile'><a href='<?php  echo  $this -> _tpl_vars [ 'url' ]-> url_create ( 'profile' , $this -> _tpl_vars [ 'user' ]-> user_info [ 'user_username' ]);  ?>
 ' class='hasedit'>Моя Страница</a><a href='user_editprofile.php' class='edit'>ред.</a></li>
     <li id='myfriends'><?php  if ( $this -> _tpl_vars [ 'total_friend_requests' ] >  0 ):  ?> <a href='user_friends_requests.php'>Мои Друзья (<b><?php  echo  $this -> _tpl_vars [ 'total_friend_requests' ];  ?>
 </b>)<?php  else:  ?> <a href='user_friends.php'>Мои Друзья<?php  endif;  ?> </a></li>
     <li><a href='user_album.php'>Мои Фотографии</a></li>
     <li><a href='user_messages.php'><?php  if ( $this -> _tpl_vars [ 'user_unread_pms' ] ==  0 ):  ?> Мои сообщения <?php  else:  ?> Мои сообщения <img src='./images/icons/menu_messages_new.gif'><?php  endif;  ?> </a></li>
     <li><a href='user_blog.php'>Мои Заметки</a></li>
     <li><a href='user_group.php'>Мои Группы</a></li>
     <li><a href='user_event.php'>Мои Встречи</a></li>
     <li><a href='user_home.php'>Мои Новости</a></li>
 <li><a href='user_poll.php'>Мои Опросы</a></li>
     <li><a href='user_music_edit.php'>Мои Аудиозаписи</a></li>
     <li><a href='radio.php'>Мое радио</a></li>
     <li><a href='user_classified.php'>Мои объявления</a></li>
     <li><a href='user_account.php'>Мои Настройки</a></li>
 
 <div class='moreDiv'><ol id='nav' style='margin-bottom:0px;'></div>
 <li><div  id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)"><a href='other/'>Гороскопы</a></div>
   </li>
 <li><a href='top_users.php'>Рейтинги</a></li>
 <li><a href='tv/'>tv программа</a></li>
 
    </ol> 
<?php  else:  ?>
       <div id="sideBar">
 
    
    <ol id='nav'>
     <li><a href='index.php'>Главная</a></li>
     <li><a href='login.php'>Вход</a></li>
     <li><a href='signup.php'>Регистрация</a></li>
    </ol>
 
   <div style="width:124px">
 </div></div>
 
<?php  endif;  ?>
 
 
 
<?php  if ( $this -> _tpl_vars [ 'user_unread_pms' ] !=  0 ):  ?>
 <div class="leftAd" style="margin-bottom:10px">
 <h4 style="color:#900">Сообщение</h4>
 <p><div style="text-align: center">
 <a href='user_messages.php'>У вас (<?php  echo  $this -> _tpl_vars [ 'user_unread_pms' ];  ?>
 ) непрочитанных сообщений.</a>
 </div></p></div>
<?php  endif;  ?>
 
 
<?php  if ( $this -> _tpl_vars [ 'user' ]-> user_exists  !=  0  &&  $this -> _tpl_vars [ 'news_total' ] >  0 ):  unset( $this -> _sections [ 'news_loop' ]);
 $this -> _sections [ 'news_loop' ][ 'name' ] =  'news_loop' ;
 $this -> _sections [ 'news_loop' ][ 'loop' ] =  is_array ( $_loop = $this -> _tpl_vars [ 'news' ]) ?  count ( $_loop ) :  max ( 0 , (int) $_loop ); unset( $_loop );
 $this -> _sections [ 'news_loop' ][ 'max' ] = (int) 1 ;
 $this -> _sections [ 'news_loop' ][ 'show' ] =  true ;
 if ( $this -> _sections [ 'news_loop' ][ 'max' ] <  0 )
      $this -> _sections [ 'news_loop' ][ 'max' ] =  $this -> _sections [ 'news_loop' ][ 'loop' ];
 $this -> _sections [ 'news_loop' ][ 'step' ] =  1 ;
 $this -> _sections [ 'news_loop' ][ 'start' ] =  $this -> _sections [ 'news_loop' ][ 'step' ] >  0  ?  0  :  $this -> _sections [ 'news_loop' ][ 'loop' ]- 1 ;
 if ( $this -> _sections [ 'news_loop' ][ 'show' ]) {
      $this -> _sections [ 'news_loop' ][ 'total' ] =  min ( ceil (( $this -> _sections [ 'news_loop' ][ 'step' ] >  0  ?  $this -> _sections [ 'news_loop' ][ 'loop' ] -  $this -> _sections [ 'news_loop' ][ 'start' ] :  $this -> _sections [ 'news_loop' ][ 'start' ]+ 1 )/ abs ( $this -> _sections [ 'news_loop' ][ 'step' ])),  $this -> _sections [ 'news_loop' ][ 'max' ]);
     if ( $this -> _sections [ 'news_loop' ][ 'total' ] ==  0 )
          $this -> _sections [ 'news_loop' ][ 'show' ] =  false ;
 } else
      $this -> _sections [ 'news_loop' ][ 'total' ] =  0 ;
 if ( $this -> _sections [ 'news_loop' ][ 'show' ]):
 
             for ( $this -> _sections [ 'news_loop' ][ 'index' ] =  $this -> _sections [ 'news_loop' ][ 'start' ],  $this -> _sections [ 'news_loop' ][ 'iteration' ] =  1 ;
                   $this -> _sections [ 'news_loop' ][ 'iteration' ] <=  $this -> _sections [ 'news_loop' ][ 'total' ];
                   $this -> _sections [ 'news_loop' ][ 'index' ] +=  $this -> _sections [ 'news_loop' ][ 'step' ],  $this -> _sections [ 'news_loop' ][ 'iteration' ]++):
 $this -> _sections [ 'news_loop' ][ 'rownum' ] =  $this -> _sections [ 'news_loop' ][ 'iteration' ];
 $this -> _sections [ 'news_loop' ][ 'index_prev' ] =  $this -> _sections [ 'news_loop' ][ 'index' ] -  $this -> _sections [ 'news_loop' ][ 'step' ];
 $this -> _sections [ 'news_loop' ][ 'index_next' ] =  $this -> _sections [ 'news_loop' ][ 'index' ] +  $this -> _sections [ 'news_loop' ][ 'step' ];
 $this -> _sections [ 'news_loop' ][ 'first' ]      = ( $this -> _sections [ 'news_loop' ][ 'iteration' ] ==  1 );
 $this -> _sections [ 'news_loop' ][ 'last' ]       = ( $this -> _sections [ 'news_loop' ][ 'iteration' ] ==  $this -> _sections [ 'news_loop' ][ 'total' ]);
 ?>
 <div class="leftAd" style="margin-bottom:10px">
   <h4>Новости</h4>
   <p><div style="text-align: center">
    <?php  echo  $this -> _tpl_vars [ 'news' ][ $this -> _sections [ 'news_loop' ][ 'index' ]][ 'item_subject' ];  ?>
 <br>
 <a href='news.php'>подробнее »</a>
   </div></p>
  </div>
<?php  endfor; endif;  endif;  ?>
 
 
<?php  if ( $this -> _tpl_vars [ 'user' ]-> user_exists  !=  0  &&  $this -> _tpl_vars [ 'bday_friends' ] !=  0 ):  unset( $this -> _sections [ 'bday_loop' ]);
 $this -> _sections [ 'bday_loop' ][ 'name' ] =  'bday_loop' ;
 $this -> _sections [ 'bday_loop' ][ 'loop' ] =  is_array ( $_loop = $this -> _tpl_vars [ 'bday_friends' ]) ?  count ( $_loop ) :  max ( 0 , (int) $_loop ); unset( $_loop );
 $this -> _sections [ 'bday_loop' ][ 'max' ] = (int) 3 ;
 $this -> _sections [ 'bday_loop' ][ 'show' ] =  true ;
 if ( $this -> _sections [ 'bday_loop' ][ 'max' ] <  0 )
      $this -> _sections [ 'bday_loop' ][ 'max' ] =  $this -> _sections [ 'bday_loop' ][ 'loop' ];
 $this -> _sections [ 'bday_loop' ][ 'step' ] =  1 ;
 $this -> _sections [ 'bday_loop' ][ 'start' ] =  $this -> _sections [ 'bday_loop' ][ 'step' ] >  0  ?  0  :  $this -> _sections [ 'bday_loop' ][ 'loop' ]- 1 ;
 if ( $this -> _sections [ 'bday_loop' ][ 'show' ]) {
      $this -> _sections [ 'bday_loop' ][ 'total' ] =  min ( ceil (( $this -> _sections [ 'bday_loop' ][ 'step' ] >  0  ?  $this -> _sections [ 'bday_loop' ][ 'loop' ] -  $this -> _sections [ 'bday_loop' ][ 'start' ] :  $this -> _sections [ 'bday_loop' ][ 'start' ]+ 1 )/ abs ( $this -> _sections [ 'bday_loop' ][ 'step' ])),  $this -> _sections [ 'bday_loop' ][ 'max' ]);
     if ( $this -> _sections [ 'bday_loop' ][ 'total' ] ==  0 )
          $this -> _sections [ 'bday_loop' ][ 'show' ] =  false ;
 } else
      $this -> _sections [ 'bday_loop' ][ 'total' ] =  0 ;
 if ( $this -> _sections [ 'bday_loop' ][ 'show' ]):
 
             for ( $this -> _sections [ 'bday_loop' ][ 'index' ] =  $this -> _sections [ 'bday_loop' ][ 'start' ],  $this -> _sections [ 'bday_loop' ][ 'iteration' ] =  1 ;
                   $this -> _sections [ 'bday_loop' ][ 'iteration' ] <=  $this -> _sections [ 'bday_loop' ][ 'total' ];
                   $this -> _sections [ 'bday_loop' ][ 'index' ] +=  $this -> _sections [ 'bday_loop' ][ 'step' ],  $this -> _sections [ 'bday_loop' ][ 'iteration' ]++):
 $this -> _sections [ 'bday_loop' ][ 'rownum' ] =  $this -> _sections [ 'bday_loop' ][ 'iteration' ];
 $this -> _sections [ 'bday_loop' ][ 'index_prev' ] =  $this -> _sections [ 'bday_loop' ][ 'index' ] -  $this -> _sections [ 'bday_loop' ][ 'step' ];
 $this -> _sections [ 'bday_loop' ][ 'index_next' ] =  $this -> _sections [ 'bday_loop' ][ 'index' ] +  $this -> _sections [ 'bday_loop' ][ 'step' ];
 $this -> _sections [ 'bday_loop' ][ 'first' ]      = ( $this -> _sections [ 'bday_loop' ][ 'iteration' ] ==  1 );
 $this -> _sections [ 'bday_loop' ][ 'last' ]       = ( $this -> _sections [ 'bday_loop' ][ 'iteration' ] ==  $this -> _sections [ 'bday_loop' ][ 'total' ]);
 ?>    
 <div class="leftAd" style="margin-bottom:10px">
 <h4 style="color:#900">Напоминание</h4>
 <p><div style="text-align: center">
 День рождения <a href='<?php  echo  $this -> _tpl_vars [ 'url' ]-> url_create ( 'profile' , $this -> _tpl_vars [ 'bday_friends' ][ $this -> _sections [ 'bday_loop' ][ 'index' ]]);  ?>
 '><?php  echo  $this -> _tpl_vars [ 'bday_friends' ][ $this -> _sections [ 'bday_loop' ][ 'index' ]];  ?>
 </a><br><?php  echo  $this -> _tpl_vars [ 'bday_users' ][ $this -> _sections [ 'bday_users_loop' ][ 'index' ]][ 'date' ];  ?>
 
 </div></p></div>
<?php  endfor; endif;  endif;  ?>
 
 </div>
<?php  endif;  ?>
 <!-- End sideBar --> 
		
	
 
     
         
        
        
        
        
        
        
        
        
            
                 
                
                    
                        Последний раз редактировалось Vadikchuv42; 25.07.2011 в 18:45 .
                    
                    
                        Причина: Добавлено сообщение
                    
                
            
        
        
       
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
	
	
		
	
	
    
        
            
             
            30.07.2011, 16:46
            
            
         
        
             
            #7  
            
         
    
 
    
    
  
    
    
     
     
  
    
    
     
    
    
     
   
  
    
        Разведчик
 
     
     
    
      
  
            
    
     
    
            
                Регистрация: 21.02.2011
 
                
                
                
                Сообщений: 9
                
  
Популярность: 12
 
                  
	Сказал(а) спасибо: 18
 
	
		
			Поблагодарили 1 раз в 1 сообщении
		
	
     
 
             
                
               
                
       
                 
     
    
    
    
        
        
            
            
                 
                Re: Кто шарит в php? 
             
             
            
        
        
        
        
        
        
        
        
        
        
     
 
    
        
        
        
        
         
     
    
    
    
        
        
        
        
             
        
        
        
        
        
        
        
            
        
        
        
     
 
 
  
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
		
	
		 
		Ваши права в разделе
	 
 
 
	
		
		Вы не можете  создавать новые темы
		Вы не можете  отвечать в темах
		Вы не можете  прикреплять вложения
		Вы не можете  редактировать свои сообщения
		 
		
		
		
		
		HTML код Выкл. 
		 
		
	  
 
 
	 
	
		
	 
 
 
 
Заявление об ответственности  / Список мошенников  
 
Часовой пояс GMT +4, время: 15:41 .