Commit Graph

16 Commits

Author SHA1 Message Date
Bharat Mediratta
144b8f4f47 Don't count on the uri having 3 components; that breaks on newer versions of PHP. 2009-03-16 07:45:32 +00:00
Bharat Mediratta
51a16d38b8 style fixes 2009-03-14 18:43:10 +00:00
Tim Almdal
cb3d39fe62 Invert the check for https vs http. 2009-03-14 01:57:37 +00:00
Bharat Mediratta
445f18fb51 Tweak abs_file() and abs_site() to generate https urls as appropriate.
Fixes ticket #125
2009-03-09 02:07:58 +00:00
Bharat Mediratta
3bfe4a07bd Fix rewritten urls to handle query params properly. This was breaking
code like:
  url::site("albums/3?page=2")
2009-02-14 22:28:20 +00:00
Tim Almdal
41ed142f5d A better fix for the problem with special characters (this simple 2
line change replaces r19995, r19998-r20001 (thanks Bharat)
2009-02-08 02:27:45 +00:00
Tim Almdal
1fc2307fab rollback r20001-r19998, r19995. This may require a reinstall 2009-02-08 02:21:28 +00:00
Tim Almdal
4e107dac41 Implement fix for ticket #35. *** Requires reinstall of core ***
* Added new field in items table (path) which is sanitized version of
name.
* Added __set method on Items_module to set the path field whenever
the name field is changed.
* Made some changes to the scaffolding so missing the path column
would not kill the scaffolding.
* Changed MY_url::site so not having a 3rd parameter won't throw an error.
2009-02-06 16:39:18 +00:00
Bharat Mediratta
894a33d744 Add support for pretty urls. So now instead of urls like:
http://example.com/gallery3/index.php/albums/2
  http://example.com/gallery3/index.php/photos/9

You'll see urls like:
  http://example.com/gallery3/index.php/Family/Weddings
  http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
2009-01-29 03:22:02 +00:00
Bharat Mediratta
f3ba69c1d6 Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress.

According to the PHP docs, the "public" keyword is implied on static
functions, so remove it.  Also, require private static functions to
start with an _.

http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Bharat Mediratta
f0b6333344 Add a logging facility, and instrument login/logout to use it. 2008-12-21 03:50:11 +00:00
Tim Almdal
38a260b1d7 Rename get_absolute_url to abs_current 2008-11-25 16:50:29 +00:00
Tim Almdal
102f0f566b Normalize atom url generation 2008-11-25 15:54:45 +00:00
Jozef Selesi
c3fc1cb7ec * Added HTTP status constants and helper functions to REST helper.
* HTTP header setting in comment module now going through REST helper API.
* Fixed items controller test.
* Fixed user installer test.
* Fixed _create() handling in the REST controller.
* Fixed routing for edit and add forms.
* Added some tests for the REST controller.
* Set svn:eol-style to LF on a bunch of files.
* Added preamble to MY_Forge.php.
2008-11-20 01:25:29 +00:00
Bharat Mediratta
9ddc8c8aab Fix typo. 2008-11-19 23:36:50 +00:00
Bharat Mediratta
4a4eac31ad Create url::abs_site() and url::abs_file() to allow us to generate
full URLs with a clean API, and isolate the cruddy party where we have
to hardcode the server protocol into a single file.
2008-11-19 23:33:50 +00:00