logo

Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
admin section on my site

i have set the site to have XaphireClean running but there is no images in the admin section :S so are these images somewere else or just not been added into the download ?

Edit : also the logout button doesnt work
Last Edit: 12th October, 2009, 10:38:14 AM by James
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

You are using 0.9.01 right? As i fixed the logout issue in that

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

yep i am using 0.9.01 Smile and it still is the same :S and also what about the images ?
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

If you look in themes/_Admin/XaphireClean/icons there is a readme saying where to download them Wink

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

ohh ok ty Grin n erm ye the logout doesnt work it loads a link then just goes back to the home page with me still logged in
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

Paste your logout.php file WITHIN the [code] tag please

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

ok Smile
Code:
<?php
/* eoCMS is a content management system written in php
    Copyright (C) 2007 - 2009  James Mortemore, Ryan Matthews
    http://www.eocms.com
   This work is licensed under the Creative Commons
   Attribution-Share Alike 3.0 United States License.
   To view a copy of this license, visit
   http://creativecommons.org/licenses/by-sa/3.0/us/
   or send a letter to Creative Commons, 171 Second Street,
   Suite 300, San Francisco, California, 94105, USA.
   Additional license terms at http://eocms.com/license.html
*/
function logout() {
   global $settings, $user;
   if(isset($_COOKIE[COOKIE_NAME])) {
      $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
      //delete the cookie so they wont be logged back in again by mistake
      setcookie(COOKIE_NAME, '', time() - (60 * 60 * 24 * 100), '', $domain);
   }
   //remove them from the users online list so they arent still noted as online
   $deleteuseronline = call('sql_query', "DELETE FROM user_online WHERE user_id = '".$user['id']."'");
   //destroy their session, basically logs them out ;)
   session_destroy();
   header("Location: index.php");
   exit;
}
?>
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

Which browser are you using?

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

safari Smile
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

Try changing this
Code:
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;

to
Code:
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : '';

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

nope that has done nothing that i can see so i will change it back but it still isnt logging me out :S
Member
Member
Offline Offline
Posts: 392
james.patten@hotmail.co.uk
Re: admin section on my site

also in the layout the logout thing which i have just found is
Code:
<?php
/* eoCMS is a content management system written in php
    Copyright (C) 2007 - 2009  James Mortemore, Ryan Matthews
    http://www.eocms.com
   This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us/              or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
   Additional license terms at http://eocms.com/license.html
*/
if(!(defined("IN_ECMS"))) { die("Hacking Attempt..."); }
if(!isset($_GET['authid']) || AUTHID != $_GET['authid']) {
header("Location: index.php");
exit();
}
call('logout');
?>


worked this out yet ? and thanks i got all the images now Grin
Last Edit: 12th October, 2009, 02:35:44 PM by James
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: admin section on my site

James in functions/logout.php

after
Code:
setcookie(COOKIE_NAME, '', time() - (60 * 60 * 24 * 100), '', $domain);


add the following:
Code:
die('Cookie exists!');

and tell me if you see the words Cookie exists! when you attempt to logout

Please do not PM me requesting support or anything, use the forums, thats what they are here for

Jump to:


0.06 seconds Queries: 13