<?php
/** 
 * 
 * NOTE: Designed for use with PHP version 4, 5 and up
 * @author Santos Montano B. <ssmontano@hotmail.com, litosantosm@gmail.com>
 * @country Perú
 * @copyright 2014
 * @version: 1.0 
 * 
 */

/** 
 * Configuration file.
 */

	$C	= new stdClass;
	
	$C->INCPATH = dirname(__FILE__).'/';
	chdir( $C->INCPATH );
	
	$C->SITE_URL = 'http://www.kanorika.com/friendly/demo/';
	$C->DOMAIN = 'http://www.kanorika.com/friendly/demo';

	// MySQL SETTINGS
	// Download From www.persianscript.ir پرشین اسکریپت ;)
	$C->DB_HOST = 'localhost';
	$C->DB_USER = 'root';
	$C->DB_PASS = '';
	$C->DB_NAME = 'friendly';
	$C->DB_MYEXT = 'mysqli'; // 'mysqli' or 'mysql'	

	
	// Folder of user data
	$C->FOLDER_DATA = "data/";
	
	// Temporary folder
	$C->FOLDER_TMP = "data/tmp/";
	
	// Avatars folder users
	$C->FOLDER_AVATAR = "data/avatars/"; 	
	$C->AVATAR_DEFAULT = 'default.jpg';
	
	// Avatars folder pages
	$C->FOLDER_AVATAR_PAGES = "data/avatars_pages/"; 	
	$C->AVATAR_DEFAULT_PAGE = 'default.jpg';

	// Avatars folder groups
	$C->FOLDER_AVATAR_GROUPS = "data/avatars_groups/"; 	
	$C->AVATAR_DEFAUL_GROUP = 'default.jpg';	
	
	// Sizes for the avatar
	$C->widthAvatar0 = 180;
	$C->widthAvatar1 = 100;
	$C->heightAvatar1 = 100;
	$C->widthAvatar2 = 50;
	$C->heightAvatar2 = 50;
	$C->widthAvatar3 = 26;
	$C->heightAvatar3 = 26;	
	$C->widthAvatar4 = 180;
	$C->heightAvatar4 = 180;
	
	$C->SIZE_IMAGEN_AVATAR = 2 * 1024 * 1024; // 2 MB;
	
	// photos folder users
	$C->FOLDER_PHOTOS = "data/photos/";
	
	// photos folder pages
	$C->FOLDER_PHOTOS_PAGES = "data/photos_pages/";
	
	// photos folder groups
	$C->FOLDER_PHOTOS_GROUPS = "data/photos_groups/";
	
	$C->SIZE_PHOTO = 5 * 1024 * 1024; // 5 MB;
	
	// Sizes for the photos
	$C->widthPhotoThumbail = 230;
	
	/**************************/
	/**************************/

	// Covers folder users
	$C->FOLDER_COVERS = "data/covers/";
	
	// Covers folder pages
	$C->FOLDER_COVERS_PAGES = "data/covers_pages/";

	// Covers folder groups
	$C->FOLDER_COVERS_GROUPS = "data/covers_groups/";
	 
	// Sizes for the covers
	$C->widthCover1 = 946;
	$C->heightCover1 = 300;
	$C->widthCover2 = 712;
	$C->heightCover2 = 226;
	$C->widthCover3 = 350;
	$C->heightCover3 = 111;

	
	$C->SIZE_IMAGEN_COVER = 5 * 1024 * 1024; // 5 MB;

	/**************************/
	
	// Background folder of images in home
	$C->FOLDER_BGHOME = "data/bghome/";
	
	/**************************/
	
	// Images of Ads of users
	$C->FOLDER_ADS = "data/ads/";
	
	/**************************/
	
	// Albums of users
	$C->FOLDER_ALBUMS = "data/albums/";
	
	/**************************/
	
	//if you want to view page view statistics in administration section set the value to TRUE,
	$C->write_page_view_is_active	= FALSE;

	
	$C->LOGIN_WITH_FACEBOOK = TRUE;
	$C->FB_APPID = '111100001111000';
	$C->FB_SECRET = '44445555666677778888999900000000';
	
	$C->LOGIN_WITH_TWITTER = TRUE;
	$C->TW_APPID = 'xxxxyyyyxxxxyyyyxxxxyyyyx';
	$C->TW_SECRET = 'aaaabbbbaaaabbbbaaaabbbbaaaabbbbaaaabbbbaaabbbbaa';
	$C->DOMAIN_EMAIL_TW = 'kanorika.com'; //usually your domain
	
	// Settings for Mail
	$C->FromName = 'Friendly';
	$C->From = 'no-reply@kanorika.com';
	$C->Host = 'mail.kanorika.com';
	$C->Port = '587';
	$C->UsernameMail = 'no-reply@kanorika.com';
	$C->PasswordMail = 'yourpass';


	// To consider the time zone (in timeago)
	//$C->TimeAgoWithZ = FALSE; // in mode local: TRUE; in server: FALSE. Or invert :).
	
	$C->INFINITE_SCROLL = TRUE;
	
	/*** VERSION 1.2 ***/
	
	$C->widthAd1 = 180;
	$C->heightAd1 = 90;

	$C->widthAd2 = 100;
	$C->heightAd2 = 50;
	
	/*** END VERSION 1.2 ***/
	
	/*** VERSION 1.3 ***/
	
	$C->LOGIN_WITH_VK = TRUE;
	$C->VK_APPID = '1111111';
	$C->VK_SECRET = 'xxxxdddxxxdddaaawwwsss';
	$C->DOMAIN_EMAIL_VK = 'kanorika.com'; //usually your domain
	
	$C->SHOW_APP = TRUE; // Show "images link" for download your app android
	
	/*** END VERSION 1.3 ***/
	
	/*** VERSION 1.4 ***/
	
	$C->LOGIN_WITH_GPLUS = TRUE;
	$C->GP_CLIENTID = '1122112211221-qvd3f4d3f4s2d3f4g5h6j7t5r4w2e3r4.apps.googleusercontent.com';
	$C->GP_CLIENTSECRET = 'r4t5y6u7i8o9e3r4t5y6e3r4';

	$C->LOGIN_WITH_LINKEDIN = TRUE;
	$C->IN_APIKEY = '77defrg5h6e3r4';
	$C->IN_SECRETKEY = 'E343ere3r4r4r4r4';
	$C->DOMAIN_EMAIL_IN = 'kanorika.com'; //usually your domain

	$C->LOGIN_WITH_YAHOO = TRUE;
	$C->YH_CONSUMERKEY = 'dj0defrgthyswdefrgthyjukiloswdefrgtdefrgthyewdsewrefdregftrewdsewrefdretrgfwdsewdsrefdrer--';
	$C->YH_CONSUMERSECRET = '3329fwget4y5dsewfdredsew3243re4354tr32ew';
	$C->YH_DOMAIN_MAIN = 'www.kanorika.com';  //usually your domain
	
	//$C->TimeAgoWithZ = FALSE; // is no longer necessary. it has been commented out.
	
	/*** END VERSION 1.4 ***/


?>