
	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	  DataLife Engine
	 0.09 - ""

	" !  !"

	Admin-club.ru (c) 2011


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	   .

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

	
	  :

		 DataLife Engine		9.2 
		   	16 
		 GD			1.0 
		    	


	  :

		 DataLife Engine		9.5 
		   	128 
		 GD			2.0+ 
		    	
		  		.htaccess


	*    ,   
	   .

	   128 .

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

	!   ,  
	 "backup" ,     .

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


		!    
		  []   ,
		       ,  
		Total Commander 6 !


	     :


	1.   <upload>    .

		         - Default
		 Flexible,      <upload/templates/Default>
		 <upload/templates/siteShablon>,  <SiteShablon> -   
		 . 

		            (
		 <upload/templates/Default/photo>   <upload/templates/Default/style/photo.css>).

	2.   <dle_photo.php>      .

		  .

		       : Developers/sql/install.txt

		,  ,    ,   
		  - (- ->  ->  ->  
		    ""). 
		       ,
		    .

		!!!        .

	3.    .

		3.1.   <engine/engine.php>

		:

------------------------------------------------------------------------------------
switch ( $do ) {
------------------------------------------------------------------------------------

		    :

------------------------------------------------------------------------------------
		case "photo":

			include ENGINE_DIR.'/photo/brain.php';

		break;
------------------------------------------------------------------------------------

		 .


		3.2.   <engine/modules/profile.php>

		:

------------------------------------------------------------------------------------
while ( $row = $db->get_row( $sql_result ) ) {
------------------------------------------------------------------------------------

		    :

------------------------------------------------------------------------------------
require_once( ROOT_DIR  . '/engine/photo/photo_nucleus/peace/profile.php'  );
------------------------------------------------------------------------------------

		 .

		3.3.   <.htaccess>
 
		:

------------------------------------------------------------------------------------
RewriteEngine On
------------------------------------------------------------------------------------

		    :

------------------------------------------------------------------------------------
# DLE Photoalboms
#RewriteCond %{REQUEST_FILENAME}  -f
#RewriteRule ^.+$ - [L,PT]
RewriteRule ^photo(/?)+$ index.php?do=photo [L]
RewriteRule ^photo-([a-z]+)(/?)+$ index.php?do=photo&a=$1 [L]
RewriteRule ^photo-([0-9]+)(/?)+$ index.php?do=photo&albom=$1 [L]
RewriteRule ^photo-id-([0-9]+).html$ index.php?do=photo&photoid=$1&a=showphoto [L]
RewriteRule ^photo-id-([0-9]+)-([0-9]+).html$ index.php?do=photo&photoid=$1&a=showphoto&pagecomments=$2 [L]
RewriteRule ^photo-([0-9]+)/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&albom=$1&onpage=$2 [L]
RewriteRule ^photo/([0-9]+)([^/]*)(/?)+$ index.php?do=photo&onpage=$1 [L]
RewriteRule ^photo/mark-([0-9]+)+$ index.php?do=photo&mark=$1 [L]
RewriteRule ^photo/mark-([0-9]+)/([0-9]+)$ index.php?do=photo&mark=$1&onpage=$2 [L]
RewriteRule ^photo/rss(/?)+$ engine/photo/rss.php [L]
RewriteRule ^photo/rss-([0-9]+)+$ engine/photo/rss.php?id=$1 [L]
RewriteRule ^photo/tegs(/?)+$ index.php?do=photo&a=tegs [L]
RewriteRule ^photo/tegs-([^/]*)(/?)+$ index.php?do=photo&tegs=$1 [L]
RewriteRule ^photo/tegs-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&tegs=$1&onpage=$2 [L]
RewriteRule ^photo/search(/?)+$ index.php?do=photo&a=search [L]
RewriteRule ^photo/search-([^/]*)(/?)+$ index.php?do=photo&search=$1 [L]
RewriteRule ^photo/search-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&search=$1&onpage=$2 [L]
RewriteRule ^photo/user-([^/]*)(/?)+$ index.php?do=photo&user=$1 [L]
RewriteRule ^photo/user-([^/]*)/([0-9]+)(/?)+$ index.php?do=photo&user=$1&onpage=$2 [L]
RewriteRule ^photo-([a-z]+)/([0-9]+)(/?)+$ index.php?do=photo&a=$1&onpage=$2 [L]
RewriteRule ^uploads/photos/(micro|others|previews|show|temp)/(.*).(jpg|png|gif|jpeg)+$ engine/photo/image.php?type=$1&file=$2&filetype=$3 [L]
RewriteRule ^uploads/photos/(.*).(jpg|png|gif|jpeg)+$ engine/photo/image.php?file=$1&filetype=$2 [L]
RewriteRule ^photo/([0-9]+)-([0-9]+)/(.*).(jpg|png|gif|jpeg)(/?)+$ engine/photo/show.php?see=$3.$4&d=$1&s=$2 [L]
RewriteRule ^photo/([0-9]+)-([0-9]+)-([0-9]+)/(.*).(jpg|png|gif|jpeg)(/?)+$ engine/photo/other.php?otherpixsize=$1&q=$2&w=$3&pid=$4.$5 [L]
# DLE Photoalboms
------------------------------------------------------------------------------------

		 .

		3.4.   <templates//userinfo.tpl>

		:

------------------------------------------------------------------------------------
: {rate}
------------------------------------------------------------------------------------

		    :

------------------------------------------------------------------------------------
<if moder> :<alboms><br></if>
  : <comms> [ <a href="<href comms>"></a> ]<br>
: <photos> [ <a href="<href photos>"></a> ]<br>
%PHOTOS%
------------------------------------------------------------------------------------

		 .

		3.5.   <index.php>. .		

		:

------------------------------------------------------------------------------------
$config['thumb_gallery'] AND ($dle_module == "showfull" OR $dle_module == "static"
------------------------------------------------------------------------------------

		 :

------------------------------------------------------------------------------------
$config['thumb_gallery'] AND ($dle_module == "showfull" OR $dle_module == "static" OR $do == "photo"
------------------------------------------------------------------------------------

		*     -  HighSlide.

		   , :

------------------------------------------------------------------------------------
$tpl->result['main'] = str_replace ( 'img src="http://'.$_SERVER['HTTP_HOST'].'/', 'img src="/', $tpl->result['main'] );
------------------------------------------------------------------------------------

		 :

------------------------------------------------------------------------------------
if($do!="photo") $tpl->result['main'] = str_replace ( 'img src="http://'.$_SERVER['HTTP_HOST'].'/', 'img src="/', $tpl->result['main'] );
------------------------------------------------------------------------------------

		 .

		*    ,      .

		4.       .

			<uploads/photos> 					- 	777
			<uploads/photos/micro> 					- 	777
			<uploads/photos/others> 				- 	777
			<uploads/photos/previews> 				- 	777
			<uploads/photos/show> 					- 	777
			<uploads/photos/temp> 					- 	777
			<uploads/photos/originals> 				- 	777
			<engine/photo/caches> 					- 	777
			<engine/photo/data> 					- 	777
			<engine/photo/data/history> 				- 	777
			<engine/photo/data/logs> 				- 	777
			<engine/photo/data/logs/photo_log.txt>	 		- 	777
			<engine/photo/data/recovery> 				- 	777
			<engine/photo/photo_nucleus/configurations> 		- 	777
			<engine/photo/photo_nucleus/languages> 			- 	777
			+      
	

			*  ,      .
			*      .htaccess

		5.  .
			

	   ,   
	 : 
		
		http://_/photo 

			

		http://_/index.php?do=photo

	  :

		http://_/photo-admin

		

		http://_/index.php?do=photo&a=admin

	 :

		http://_/photo-add

		

		http://_/index.php?do=photo&a=add

	-:

		http://_/admin.php?mod=photo

		* admin.php -   -
		      
		.

	!      
	,      
	   .  
	   .

	     :


		-   ;
		-   /;
		- " ";
		-  , ,

		      
		   ICQ 709-056   
		   .


	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	" " 		- http://admin-club.ru
		      		- http://admin-club.ru/forum

	Data Life Engine 	- http://dle-news.ru

	_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


	() RedRat, 2011

