Files Not Found

Help with installation and general calendar setttings

Re: Files Not Found

Postby jmd87 » Wed Feb 08, 2012 11:43 am

Hi Chris,

Thankyou for reply :)

That did not work either :( it just keeps saying the: ac-config.inc.php not found when going to the admin page

Many thanks
Joe
jmd87
 
Posts: 6
Joined: Tue Feb 07, 2012 3:59 pm

Re: Files Not Found

Postby chris » Wed Feb 08, 2012 12:15 pm

Could you echo the $the_file variable to see what your path is?
Also check what the path should be with print_r($_SERVER["DOCUMENT_ROOT"]);

If all else fails, send me a pm with your ftp details and I will take a look for you.

Chris
User avatar
chris
Site Admin
 
Posts: 1088
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Files Not Found

Postby jmd87 » Wed Feb 08, 2012 3:41 pm

Hi Chris,

Thanks alot I got it working! I used the print script and turns out i was missing a "/" !!!

Thanks alot for your help and everyone elses!
jmd87
 
Posts: 6
Joined: Tue Feb 07, 2012 3:59 pm

Re: Files Not Found

Postby johnmx » Tue Feb 14, 2012 9:15 pm

I had the same problems but now it´s working under WampServer for Windows.

I did the following changes:
File: \Availability\ac-admin\index.php
Line: 14
Before: define("AC_ROOT", str_replace("/ac-admin","/",__DIR__));
After: define("AC_ROOT", str_replace("ac-admin","/",__DIR__));

File: \ac-includes\ajax\ajax-common.inc.php
Line: 38
Before: define("AC_ROOT", str_replace("ac-includes/ajax","",dirname(__FILE__)));
After: define("AC_ROOT", str_replace("ac-includes\\ajax","",dirname(__FILE__)));

File: \ac-admin\css\admin-calendar.css
Line: 7
Before: .cal_month ul li.booked_pr_pm { background-image:url("/calendar/ac-contents/themes/default/images/bg_days.png");}
After: .cal_month ul li.booked_pr_pm { background-image:url("../../ac-contents/themes/default/images/bg_days.png");}


Best Regards.
johnmx
 
Posts: 2
Joined: Tue Feb 14, 2012 4:13 pm

Re: Files Not Found

Postby GrandMaster » Wed Jul 25, 2012 11:36 pm

<?php
session_start();
function session_clear() {
// if session exists, unregister all variables that exist and destroy session
$exists = "no";
$session_array = explode(";",session_encode());
for ($x = 0; $x < count($session_array); $x++) {
$name = substr($session_array[$x], 0, strpos($session_array[$x],"|"));
if (@session_is_registered($name)) {
@session_unregister('$name');
$exists = "yes";
}
}
if ($exists != "no") {
session_destroy();
}
}
session_clear();
if(!@session_is_registered(session_name())) {
header("Location: index.php");
}else{
echo"<h1 style=\"color:red;\">NOT Logged Out</h1>";
echo"Please contact the system administrator.";
}
?>
This did the trick for me, now i can logout and come into the adminlogin
GrandMaster
 
Posts: 1
Joined: Wed Jul 25, 2012 11:17 pm

Previous

Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron