
17-02-2011, 10:42:12
|
| Eposta Aktivasyonu Gerekmekte | | | |
Awbs sub domain Kurmak Yardım Talebi | | s.a Arkadaşlar awbs otomasyon sistemimi sub domaine kurmak istiyorum
buna göre dbconfig.php dosyası içindeki ayarlar nasıl olmalı
aşağıya eklediğim orjinal hiç dokunulmamış dbconfig.php dosyası bunu sub domaine kurabilmek için nasıl ayar yapmam gerekiyo acaba sub domaine göre düzenleme yapıp yazarmısınız silinicek yerleride silerseniz iyi çalışmlar dilerim yardımlarınızı Bekliyorum PHP- Kodu: <?php error_reporting(E_ALL ^ E_NOTICE); //error_reporting(E_ALL); //only uncomment this setting for debugging! //DELETE THE FOLLOWING LINE AFTER YOU EDIT THE BELOW FIELDS!!!! //DELETE THE FOLLOWING LINE AFTER YOU EDIT THE BELOW FIELDS!!!! //DELETE THE FOLLOWING LINE AFTER YOU EDIT THE BELOW FIELDS!!!! $needs_edit=1; //delete this line //DO NOT DELETE BELOW THIS LINE, ONLY EDIT!!!! //DO NOT DELETE BELOW THIS LINE, ONLY EDIT!!!! //DO NOT DELETE BELOW THIS LINE, ONLY EDIT!!!! //memory $memlimit="512M"; //cant surf here if(eregi("dbconfig.php",getenv("SCRIPT_NAME"))){session_unregister("newuid");session_unregister("LoggedIn");exit;} //security if ($_POST[queue_debug_mode] || $_GET[queue_debug_mode]){session_destroy;exit;} if ($_POST[debug] || $_GET[debug]){session_destroy;exit;} if ($_POST[workdir] || $_GET[workdir]){session_destroy;exit;} //EDIT HERE <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- //EDIT HERE <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- //EDIT HERE <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- //uncomment below if you want to block theme or index page switching //if ($_POST[td] || $_GET[td]){$_GET['td']=false;$_POST['td']=false;$td=false} //if ($_POST[t] || $_GET[t]){$_GET['t']=false;$_POST['t']=false;$t=false} //Attempt to set your timezone - Find yours in /docs/timezones.txt (Use TZ column) //Depending on server settings, you may have to tweak this to get the proper timestamp //This setting is NOT required. You can leave the following 2 lines commented if you do not want to use the feature //$thistimezone="America/New_York"; //Uncomment only this line if you want to use the timezone feature //putenv("TZ=".$thistimezone); //Uncomment only this line if you want to use the timezone feature //If you have enabled the timezone setting, uncomment the below to see your time offset (for testing) //echo date("l jS FY, g:iA, T")."<br>"; $dbhost="localhost"; $dbusername="dbusername"; $dbpassword="dbpassword"; $dbdatabase="dbname"; $workdir="/home/username/public_html"; //full path to AWBS, no trailing slash //cookie domain - MUST SET CORRECTLY $cookie_domain=".yourdomain.com"; //your BASE domain name (not a subdomain), preceeded by a dot //END EDIT <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- //END EDIT <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- //END EDIT <-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0- if(!function_exists('nosql')){ function nosql(){ //don't uncomment the below line unless you REALLY like a LOT of MAIL :) //@mail("your@emailaddress.com","AWBS Error! SQL Down!","Looks like SQL is down. Fix it!","From: your@emailaddress.com\r\n"); ob_start(); print"<HTML> <HEAD> <TITLE>System Error</TITLE> </HEAD> <BODY> <table border=\"0\" cellpadding=\"8\" cellspacing=\"4\"> <tr> <td align=center>The system has suffered an unrecoverable database error.</td> </tr> <tr> <td align=center>Error (if any): ".mysql_error()."</td> </tr> <tr> <td align=center>Please contact us if the problem persists. </tr> </table> </BODY> </HTML>"; exit; } } if(!function_exists('dbconnect')){ function dbconnect(){ global $dbhost,$dbusername,$dbpassword,$dbdatabase; $db_connect=@mysql_connect($dbhost,$dbusername,$dbpassword) or nosql(); @mysql_select_db($dbdatabase) or nosql(); return $db_connect; } } $db_connect=dbconnect(); $query=mysql_query("select * from config_data"); while ($row = @mysql_fetch_array($query, MYSQL_ASSOC)) { $$row['cname']=$row['cvalue']; } define(WORKDIR, $workdir); require_once(WORKDIR."/includes/subconfig.php"); $ca_regex="^[[:space:]/#\,\'a-zA-Z0-9._-]*$"; ?>
__________________ Linux Sunucu Yapılandırma Ücretli Destek İçin Özel Mesaj Gönderin |