diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/changepassword.php | 7 | ||||
-rw-r--r-- | frontend/fb_connect.php | 5 | ||||
-rw-r--r-- | frontend/lib/d-files.php | 2 | ||||
-rw-r--r-- | frontend/openid_manage.php | 7 |
4 files changed, 12 insertions, 9 deletions
diff --git a/frontend/changepassword.php b/frontend/changepassword.php index fdea189..69ebfb2 100644 --- a/frontend/changepassword.php +++ b/frontend/changepassword.php @@ -1,46 +1,47 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <?php /* Cheetah News changepassword.php - Copyright (C) 2005, 2006 Wojciech Polak. + Copyright (C) 2005, 2006, 2010 Wojciech Polak. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ require_once 'lib/include.php'; +require_once 'lib/d-sigs.php'; start_session (null, true); $session->auth ('iflogged'); -echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$CHEETAH_LANG.'" lang="'.$CHEETAH_LANG.'">'; +echo '<html xmlns="http://www.w3.org/1999/xhtml">'; ?> <head> <title>Cheetah News</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex,nofollow" /> -<link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> +<link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> <link rel="icon" href="images/favicon.png" type="image/png" /> </head> <body> <?php getvars ('hash'); postvars ('submit,pass,rpass,opass'); $auth = 0; $validPass = true; $validPassLen = true; diff --git a/frontend/fb_connect.php b/frontend/fb_connect.php index d5bf81b..d3bc727 100644 --- a/frontend/fb_connect.php +++ b/frontend/fb_connect.php @@ -10,24 +10,25 @@ option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ require_once 'lib/include.php'; +require_once 'lib/d-sigs.php'; require_once 'lib/facebook.php'; start_session (null, true); $session->auth ('iflogged'); $message = ''; $auth = true; getvars ('link'); if ($session->status['afterlogged'] != 'yes' || $session->email == 'guest') { @@ -81,30 +82,30 @@ if ($auth) { } } } catch (FacebookApiException $e) { error_log ($e); } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:fb="http://www.facebook.com/2008/fbml"> + xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>Cheetah News</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex,nofollow" /> -<link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> +<link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> <link rel="icon" href="images/favicon.png" type="image/png" /> </head> <body> <?php if (!empty ($message)) { ?> <div id="box"> <h2><?php echo $message; ?></h2> </div> <?php } diff --git a/frontend/lib/d-files.php b/frontend/lib/d-files.php index fc92e6c..d351aee 100644 --- a/frontend/lib/d-files.php +++ b/frontend/lib/d-files.php @@ -33,17 +33,17 @@ $files = array ('bt' => array ('js', array ('js/v2/i18n.js', 'js/v2/notes.js', 'js/v2/weather.js', 'js/v2/niftycube.js')), 'login' => array ('js', array ('js/v2/login.js')), 'tr' => array ('xml', array ('xslt/v2/feed.xsl')), 'op' => array ('xml', array ('xslt/v2/opml.xsl')), 'wt' => array ('xml', array ('xslt/v2/weather.xsl')), 'css' => array ('css', array ('css/v2/style1.css', 'css/v2/niftyCorners.css')), 'css.login' => array ('css', array ('css/v2/login.css')), 'css.notice' => array ('css', array ('css/v2/notice.css')), 'css.signup' => array ('css', array ('css/v2/signup.css')), - 'css.changepassword' => array ('css', array ('css/v2/changepassword.css')), + 'css.cswindow' => array ('css', array ('css/v2/cswindow.css')), 'dir' => array ('xml', array ('gen/directory.xml')), 'popular' => array ('xml', array ('gen/popular.xml')) ); ?> diff --git a/frontend/openid_manage.php b/frontend/openid_manage.php index b50315b..45fb1d8 100644 --- a/frontend/openid_manage.php +++ b/frontend/openid_manage.php @@ -1,33 +1,34 @@ <?php /* Cheetah News openid_manage.php - Copyright (C) 2008 Wojciech Polak. + Copyright (C) 2008, 2010 Wojciech Polak. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ require_once 'lib/include.php'; +require_once 'lib/d-sigs.php'; require_once 'Auth/OpenID/Consumer.php'; require_once 'Auth/OpenID/FileStore.php'; require_once 'Auth/OpenID/SReg.php'; start_session (null, true); $session->auth ('iflogged'); $qs = false; $message = ''; postvars ('add'); getvars ('remove'); @@ -108,30 +109,30 @@ else if (!empty ($add)) $message = _('This OpenID is already attached.'); } } else if (!empty ($remove)) { $db = new Database (); $db->query ("DELETE FROM openid WHERE userid='".$session->id. "' AND identity='".$db->escape ($remove)."'"); redirect ('openid_manage'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$CHEETAH_LANG?>" lang="<?=$CHEETAH_LANG?>"> +<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cheetah News</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex,nofollow" /> -<link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> +<link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> <link rel="icon" href="images/favicon.png" type="image/png" /> </head> <body> <?php if (!empty ($message)) { ?> <div id="box"> <h2><?php echo $message; ?></h2> </div> <p></p> |