44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
###################### AVChat 3.0 Configuration file, DO NOT EDIT THE NEXT FEW LINES ###
|
|
//when tne admin interface, admin.swf will request this file from the http server it will send &admin=true via GET
|
|
if (isset($_GET['admin']) && $_GET['admin']=="true"){
|
|
//integration_before_admin.php most commonly contains code for integrating with 3rd party cms systems
|
|
if (file_exists("integration_before_admin.php")){include("integration_before_admin.php");}
|
|
}else{
|
|
//integration_before.php most commonly contains code for integrating with 3rd party cms systems
|
|
if (file_exists("integration_before.php")){ include("integration_before.php");}
|
|
}
|
|
|
|
|
|
/**
|
|
//This variable is sent to index.swf and admin.swf via GET and forwarded to this script. To edit it's value look in index.html and admin.html respectively.
|
|
if(isset($_GET["userId"])){
|
|
$userId = $_GET["userId"];
|
|
}
|
|
*/
|
|
|
|
###################### AVChat 3.0 Configuration file, DO NOT EDIT ABOVE ###
|
|
//Loading avc_setting.xml
|
|
|
|
$avcSettings = simplexml_load_file('avc_settings.xml');
|
|
foreach ($avcSettings as $setting){
|
|
$avconfig[(string)$setting->getName()]=(string)$setting->value;
|
|
//echo $setting->getName()."=".$setting->value."<br/>";
|
|
}
|
|
|
|
|
|
##################### DO NOT EDIT BELOW ############################
|
|
|
|
//integration.php most commonly contains code for integrating with 3rd party cms systems
|
|
|
|
|
|
if (file_exists("integration.php")){ include("integration.php");}
|
|
|
|
if($doNotEcho != true){
|
|
echo 'a=b';//as3 won't allow the var/value air to start with & so we echo some dummy data first
|
|
foreach ($avconfig as $key => $value){
|
|
echo '&'.$key.'='.urlencode($value);
|
|
}
|
|
}
|
|
|
|
?>
|