Location: PHPKode > projects > Pligg > pligg/modules/karma/karma_settings.php
<?php
// the path to the module. the probably shouldn't be changed unless you rename the karma folder(s)
define('karma_path', my_pligg_base . '/modules/karma/');

// the path to the module. the probably shouldn't be changed unless you rename the module_store folder(s)
if(!defined('lang_loc')){
	// determine if we're in root or another folder like admin
	$pos = strrpos($_SERVER["SCRIPT_NAME"], "/");
	$path = substr($_SERVER["SCRIPT_NAME"], 0, $pos);
	if ($path == "/"){$path = "";}
	if($path != my_pligg_base){
		define('lang_loc', '..');
	} else {
		define('lang_loc', '.');
	}
}
	
define('karma_lang_conf', lang_loc . '/modules/karma/lang.conf');
define('karma_pligg_lang_conf', lang_loc . "/languages/lang_" . pligg_language . ".conf");

define('karma_tpl_path', '../modules/karma/templates/');

// don't touch anything past this line.
if(isset($main_smarty) && is_object($main_smarty)){
	$main_smarty->assign('karma_path', karma_path);
	$main_smarty->assign('karma_pligg_lang_conf', karma_pligg_lang_conf);
	$main_smarty->assign('karma_lang_conf', karma_lang_conf);
	$main_smarty->assign('karma_tpl_path', karma_tpl_path);
	$main_smarty->assign('karma_places', $karma_places);
}

?>
Return current item: Pligg