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,13 +1,13 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 | 2 | ||
3 | <?php | 3 | <?php |
4 | 4 | ||
5 | /* | 5 | /* |
6 | Cheetah News changepassword.php | 6 | Cheetah News changepassword.php |
7 | Copyright (C) 2005, 2006 Wojciech Polak. | 7 | Copyright (C) 2005, 2006, 2010 Wojciech Polak. |
8 | 8 | ||
9 | This program is free software; you can redistribute it and/or modify it | 9 | This program is free software; you can redistribute it and/or modify it |
10 | under the terms of the GNU General Public License as published by the | 10 | under the terms of the GNU General Public License as published by the |
11 | Free Software Foundation; either version 3 of the License, or (at your | 11 | Free Software Foundation; either version 3 of the License, or (at your |
12 | option) any later version. | 12 | option) any later version. |
13 | 13 | ||
@@ -18,23 +18,24 @@ | |||
18 | 18 | ||
19 | You should have received a copy of the GNU General Public License along | 19 | You should have received a copy of the GNU General Public License along |
20 | with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | require_once 'lib/include.php'; | 23 | require_once 'lib/include.php'; |
24 | require_once 'lib/d-sigs.php'; | ||
24 | 25 | ||
25 | start_session (null, true); | 26 | start_session (null, true); |
26 | $session->auth ('iflogged'); | 27 | $session->auth ('iflogged'); |
27 | 28 | ||
28 | echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$CHEETAH_LANG.'" lang="'.$CHEETAH_LANG.'">'; | 29 | echo '<html xmlns="http://www.w3.org/1999/xhtml">'; |
29 | ?> | 30 | ?> |
30 | <head> | 31 | <head> |
31 | <title>Cheetah News</title> | 32 | <title>Cheetah News</title> |
32 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 33 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
33 | <meta name="robots" content="noindex,nofollow" /> | 34 | <meta name="robots" content="noindex,nofollow" /> |
34 | <link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> | 35 | <link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> |
35 | <link rel="icon" href="images/favicon.png" type="image/png" /> | 36 | <link rel="icon" href="images/favicon.png" type="image/png" /> |
36 | </head> | 37 | </head> |
37 | <body> | 38 | <body> |
38 | 39 | ||
39 | <?php | 40 | <?php |
40 | 41 | ||
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 | |||
@@ -16,12 +16,13 @@ | |||
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License along | 17 | You should have received a copy of the GNU General Public License along |
18 | with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | require_once 'lib/include.php'; | 21 | require_once 'lib/include.php'; |
22 | require_once 'lib/d-sigs.php'; | ||
22 | require_once 'lib/facebook.php'; | 23 | require_once 'lib/facebook.php'; |
23 | 24 | ||
24 | start_session (null, true); | 25 | start_session (null, true); |
25 | $session->auth ('iflogged'); | 26 | $session->auth ('iflogged'); |
26 | $message = ''; | 27 | $message = ''; |
27 | $auth = true; | 28 | $auth = true; |
@@ -87,18 +88,18 @@ if ($auth) { | |||
87 | } | 88 | } |
88 | } | 89 | } |
89 | 90 | ||
90 | ?> | 91 | ?> |
91 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 92 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
92 | <html xmlns="http://www.w3.org/1999/xhtml" | 93 | <html xmlns="http://www.w3.org/1999/xhtml" |
93 | xmlns:fb="http://www.facebook.com/2008/fbml"> | 94 | xmlns:fb="http://www.facebook.com/2008/fbml"> |
94 | <head> | 95 | <head> |
95 | <title>Cheetah News</title> | 96 | <title>Cheetah News</title> |
96 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 97 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
97 | <meta name="robots" content="noindex,nofollow" /> | 98 | <meta name="robots" content="noindex,nofollow" /> |
98 | <link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> | 99 | <link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> |
99 | <link rel="icon" href="images/favicon.png" type="image/png" /> | 100 | <link rel="icon" href="images/favicon.png" type="image/png" /> |
100 | </head> | 101 | </head> |
101 | <body> | 102 | <body> |
102 | 103 | ||
103 | <?php | 104 | <?php |
104 | 105 | ||
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 | |||
@@ -39,11 +39,11 @@ $files = array ('bt' => array ('js', array ('js/v2/i18n.js', | |||
39 | 'wt' => array ('xml', array ('xslt/v2/weather.xsl')), | 39 | 'wt' => array ('xml', array ('xslt/v2/weather.xsl')), |
40 | 'css' => array ('css', array ('css/v2/style1.css', | 40 | 'css' => array ('css', array ('css/v2/style1.css', |
41 | 'css/v2/niftyCorners.css')), | 41 | 'css/v2/niftyCorners.css')), |
42 | 'css.login' => array ('css', array ('css/v2/login.css')), | 42 | 'css.login' => array ('css', array ('css/v2/login.css')), |
43 | 'css.notice' => array ('css', array ('css/v2/notice.css')), | 43 | 'css.notice' => array ('css', array ('css/v2/notice.css')), |
44 | 'css.signup' => array ('css', array ('css/v2/signup.css')), | 44 | 'css.signup' => array ('css', array ('css/v2/signup.css')), |
45 | 'css.changepassword' => array ('css', array ('css/v2/changepassword.css')), | 45 | 'css.cswindow' => array ('css', array ('css/v2/cswindow.css')), |
46 | 'dir' => array ('xml', array ('gen/directory.xml')), | 46 | 'dir' => array ('xml', array ('gen/directory.xml')), |
47 | 'popular' => array ('xml', array ('gen/popular.xml')) | 47 | 'popular' => array ('xml', array ('gen/popular.xml')) |
48 | ); | 48 | ); |
49 | ?> | 49 | ?> |
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,11 +1,11 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | /* | 3 | /* |
4 | Cheetah News openid_manage.php | 4 | Cheetah News openid_manage.php |
5 | Copyright (C) 2008 Wojciech Polak. | 5 | Copyright (C) 2008, 2010 Wojciech Polak. |
6 | 6 | ||
7 | This program is free software; you can redistribute it and/or modify it | 7 | This program is free software; you can redistribute it and/or modify it |
8 | under the terms of the GNU General Public License as published by the | 8 | under the terms of the GNU General Public License as published by the |
9 | Free Software Foundation; either version 3 of the License, or (at your | 9 | Free Software Foundation; either version 3 of the License, or (at your |
10 | option) any later version. | 10 | option) any later version. |
11 | 11 | ||
@@ -16,12 +16,13 @@ | |||
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License along | 17 | You should have received a copy of the GNU General Public License along |
18 | with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | require_once 'lib/include.php'; | 21 | require_once 'lib/include.php'; |
22 | require_once 'lib/d-sigs.php'; | ||
22 | require_once 'Auth/OpenID/Consumer.php'; | 23 | require_once 'Auth/OpenID/Consumer.php'; |
23 | require_once 'Auth/OpenID/FileStore.php'; | 24 | require_once 'Auth/OpenID/FileStore.php'; |
24 | require_once 'Auth/OpenID/SReg.php'; | 25 | require_once 'Auth/OpenID/SReg.php'; |
25 | 26 | ||
26 | start_session (null, true); | 27 | start_session (null, true); |
27 | $session->auth ('iflogged'); | 28 | $session->auth ('iflogged'); |
@@ -114,18 +115,18 @@ else if (!empty ($remove)) { | |||
114 | "' AND identity='".$db->escape ($remove)."'"); | 115 | "' AND identity='".$db->escape ($remove)."'"); |
115 | redirect ('openid_manage'); | 116 | redirect ('openid_manage'); |
116 | } | 117 | } |
117 | 118 | ||
118 | ?> | 119 | ?> |
119 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 120 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
120 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$CHEETAH_LANG?>" lang="<?=$CHEETAH_LANG?>"> | 121 | <html xmlns="http://www.w3.org/1999/xhtml"> |
121 | <head> | 122 | <head> |
122 | <title>Cheetah News</title> | 123 | <title>Cheetah News</title> |
123 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 124 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
124 | <meta name="robots" content="noindex,nofollow" /> | 125 | <meta name="robots" content="noindex,nofollow" /> |
125 | <link rel="stylesheet" href="d?q=css.changepassword" type="text/css" /> | 126 | <link rel="stylesheet" href="<?=dsp('css.cswindow')?>" type="text/css" /> |
126 | <link rel="icon" href="images/favicon.png" type="image/png" /> | 127 | <link rel="icon" href="images/favicon.png" type="image/png" /> |
127 | </head> | 128 | </head> |
128 | <body> | 129 | <body> |
129 | 130 | ||
130 | <?php | 131 | <?php |
131 | 132 | ||