Commit Graph

23 Commits

Author SHA1 Message Date
Bharat Mediratta
a4d63d5a41 Exclude lib/swfupload from our scan paths 2009-04-06 08:59:39 +00:00
Tim Almdal
12701b1801 The start of the exif module. so I can merger the exifer library 2009-02-07 21:21:08 +00:00
Bharat Mediratta
fc8cf562f5 Fix up various little things to get File_Structure_Test to pass. 2009-01-19 07:26:25 +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
Andy Staudacher
6510fae661 Remove path normalization, the current normalization code didn't go far enough anyway. 2009-01-11 05:28:48 +00:00
Bharat Mediratta
01666c5579 Fix all file structure issues (tabs, bad preambles, etc).
Note: installer/install.php is now on the "direct access" list.
2009-01-11 02:27:00 +00:00
Bharat Mediratta
7f52500cf9 Allow .txt.php views 2009-01-11 02:02:43 +00:00
Bharat Mediratta
cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
e82b08db20 Make the profiler output more legible by adding some padding to the table. 2008-12-16 04:45:52 +00:00
Bharat Mediratta
85239ec750 Ignore gallery_unit_test/views/kohana_*.php 2008-12-08 10:46:06 +00:00
Andy Staudacher
38e1eef547 Some code audit fixes and adding some directory separator normalization code to make it work on Windows as well. 2008-11-26 20:21:39 +00:00
Tim Almdal
4c587bdb01 Limit File_Structure_Test to only apply the regex expression if views is contained in the path name. 2008-11-20 05:24:24 +00:00
Tim Almdal
c8dc84d502 Change the regex to assert true for files that match the pattern "#/views/.*?(\.html|mrss)\.php$#" 2008-11-19 22:39:44 +00:00
Tim Almdal
8825687d03 Change the view_files_end_in_html_dot_php_test to view_files_correct_suffix_test and change it to also accept mrss as a valid suffix 2008-11-19 22:20:23 +00:00
Tim Almdal
9f261213a5 Reset PasswordHash.php to its original state and exclude it from the file_structure_test 2008-11-11 06:21:21 +00:00
Bharat Mediratta
7a1b2b0ca7 Add a test to make sure that we have no windows-style line endings. 2008-11-10 15:33:55 +00:00
Bharat Mediratta
605d2de336 Lots of new stuff!
Replace theme HTML with *almost* the latest stuff from the
mockups.  (it doesn't include r18467 yet).

Our theme format is now modelled after WordPress / Habari's style
where you have one entry point per type (eg: album.php) which can
load up whatever parts it needs (eg: $theme->display("header"))

Created album and photo helpers which have create() functions
that form the base of our new API, along with tests for them.

Created our own version of the ORM_MPTT since the existing
versions were too buggy and unsupported to depend upon.  Only has
a minimal implementation so far, and the tests are not yet
committed.

Added path(), thumbnail_path() and resize_path() to Item_Model

Extended the scaffolding to allow you to add lots of
photos/albums into your hierarchy.

Deleted modules/mptt -- we're not going to use this anymore.
2008-11-04 21:24:42 +00:00
Bharat Mediratta
ade1650846 Add a test to detect tabs in our code, and convert all tabs to spaces
so that the test passes.
2008-11-04 05:22:06 +00:00
Bharat Mediratta
2f151cf39f Ignore view files in no_trailing_closing_php_tag_test since they will occasionally
end in tags like <?= this ?>
2008-11-02 21:56:14 +00:00
Bharat Mediratta
06174a4f74 Add a test to verify that we have the right preamble on files. 2008-11-01 22:42:59 +00:00
Bharat Mediratta
6f98bd445a Clean up tests a bit. 2008-11-01 22:05:08 +00:00
Bharat Mediratta
a7f22994ed Add a new test to verify that view files end in .html.php 2008-11-01 18:45:25 +00:00
Bharat Mediratta
60fbea6fd0 Add first test; this verifies that we leave the ?> off at the end of PHP files. 2008-11-01 10:47:00 +00:00