bogus version of common_local_url()
Threw together a bogus version of common_local_url(), which should work for now. But eventually it should use pretty URLs if possible. darcs-hash:20080517135138-84dde-3c69c89ee8080568e92f655cbb3171867a7b38ce.gz
This commit is contained in:
parent
3803cf2153
commit
e0438b8223
9
doc/TODO
9
doc/TODO
|
@ -18,11 +18,11 @@
|
||||||
+ header menu
|
+ header menu
|
||||||
+ footer menu
|
+ footer menu
|
||||||
+ disallow direct to PHP files
|
+ disallow direct to PHP files
|
||||||
|
+ common_local_url()
|
||||||
- require valid nicknames
|
- require valid nicknames
|
||||||
- store canonical username for comparison and fetch
|
- store canonical username for comparison and fetch
|
||||||
- use only canonical usernames
|
- use only canonical usernames
|
||||||
- use only canonical email addresses
|
- use only canonical email addresses
|
||||||
- common_local_url()
|
|
||||||
- configuration system ($config)
|
- configuration system ($config)
|
||||||
- RSS 1.0 feeds of a user's notices
|
- RSS 1.0 feeds of a user's notices
|
||||||
- RSS 1.0 dump of a user's notices
|
- RSS 1.0 dump of a user's notices
|
||||||
|
@ -33,7 +33,14 @@
|
||||||
- license on shownotice
|
- license on shownotice
|
||||||
- design from Open Source Web Designs
|
- design from Open Source Web Designs
|
||||||
- TOS checkbox on register
|
- TOS checkbox on register
|
||||||
|
- pretty URLs
|
||||||
- release 0.1
|
- release 0.1
|
||||||
|
- content negotiation for interface language
|
||||||
|
- content negotiation for content type
|
||||||
|
- content negotiation for encoding
|
||||||
|
- content negotiation for charset
|
||||||
|
- If-Modified-Since support
|
||||||
|
- Vary
|
||||||
- delete a notice
|
- delete a notice
|
||||||
- gettext
|
- gettext
|
||||||
- subscribe remote
|
- subscribe remote
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* XXX: break up into separate modules (HTTP, HTML, user, files) */
|
||||||
|
|
||||||
|
|
||||||
if (!defined('LACONICA')) { exit(1) }
|
if (!defined('LACONICA')) { exit(1) }
|
||||||
|
|
||||||
define('AVATAR_PROFILE_SIZE', 96);
|
define('AVATAR_PROFILE_SIZE', 96);
|
||||||
|
@ -254,6 +257,16 @@ function common_avatar_url($filename) {
|
||||||
return $config['avatar']['path'] . '/' . $filename;
|
return $config['avatar']['path'] . '/' . $filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function common_local_url($action, $args) {
|
||||||
|
/* XXX: pretty URLs */
|
||||||
|
$extra = '';
|
||||||
|
foreach ($args as $key => $value) {
|
||||||
|
$extra .= "&${key}=${value}";
|
||||||
|
}
|
||||||
|
/* XXX: correct path */
|
||||||
|
return "/index.php?action=${action}${extra}";
|
||||||
|
}
|
||||||
|
|
||||||
// XXX: set up gettext
|
// XXX: set up gettext
|
||||||
|
|
||||||
function _t($str) { $str }
|
function _t($str) { $str }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user