diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:23:29 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:23:29 +0000 |
commit | cd1d02375400972f2a719852d44c094ab500e8b6 (patch) | |
tree | 611f0c01f91b8d0aa1d160f64c7cf170d90c57fb /modules | |
parent | 7c82691e0057188e07601c30069385c3f17cbff1 (diff) |
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)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/views/admin_block_recent_comments.html.php | 2 | ||||
-rw-r--r-- | modules/comment/views/comment.html.php | 2 | ||||
-rw-r--r-- | modules/comment/views/comments.html.php | 2 | ||||
-rw-r--r-- | modules/gallery_unit_test/views/kohana_unit_test.php | 2 | ||||
-rw-r--r-- | modules/gmaps/views/gmaps_block.html.php | 2 | ||||
-rw-r--r-- | modules/info/views/info_block.html.php | 2 | ||||
-rw-r--r-- | modules/media_rss/views/feed.mrss.php | 2 | ||||
-rw-r--r-- | modules/rearrange/views/rearrange.html.php | 2 | ||||
-rw-r--r-- | modules/rearrange/views/rearrange_item_list.html.php | 2 | ||||
-rw-r--r-- | modules/search/views/search_link.html.php | 2 | ||||
-rw-r--r-- | modules/tag/views/tag_block.html.php | 2 | ||||
-rw-r--r-- | modules/tag/views/tag_cloud.html.php | 2 | ||||
-rw-r--r-- | modules/user/views/admin_groups.html.php | 2 | ||||
-rw-r--r-- | modules/user/views/admin_users.html.php | 2 | ||||
-rw-r--r-- | modules/user/views/login.html.php | 2 | ||||
-rw-r--r-- | modules/watermark/views/admin_watermarks.html.php | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php index 76414300..6829d74b 100644 --- a/modules/comment/views/admin_block_recent_comments.html.php +++ b/modules/comment/views/admin_block_recent_comments.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <ul> <? foreach ($comments as $comment): ?> <li> diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php index 19886d28..25cd2caa 100644 --- a/modules/comment/views/comment.html.php +++ b/modules/comment/views/comment.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <li id="gComment-<?= $comment->id; ?>"> <p> <a href="#" class="gAuthor"><?= $comment->author ?></a> diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index f4b3d6dc..b436fd98 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <ul> <? foreach ($comments as $comment): ?> <li id="gComment-<?= $comment->id; ?>"> diff --git a/modules/gallery_unit_test/views/kohana_unit_test.php b/modules/gallery_unit_test/views/kohana_unit_test.php index a276235b..29990785 100644 --- a/modules/gallery_unit_test/views/kohana_unit_test.php +++ b/modules/gallery_unit_test/views/kohana_unit_test.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<? defined("SYSPATH") or die("No direct script access.") ?> <?php function green_start() { diff --git a/modules/gmaps/views/gmaps_block.html.php b/modules/gmaps/views/gmaps_block.html.php index a49b900d..48b37600 100644 --- a/modules/gmaps/views/gmaps_block.html.php +++ b/modules/gmaps/views/gmaps_block.html.php @@ -1,2 +1,2 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <iframe width="214" height="214" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&geocode=&ie=UTF8&t=h&ei=-ropSbi8KpXIjAOiibmHDQ&view=map&attrid=&s=AARTsJoEm4ODiRa9-yt6-lndtYMlWHPR4w&msa=0&msid=106914852640486882019.000452143d9aa600cc0d6&ll=52.369835,4.886341&spn=0.022429,0.036736&z=13&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps/ms?hl=en&geocode=&ie=UTF8&t=h&ei=-ropSbi8KpXIjAOiibmHDQ&view=map&attrid=&msa=0&msid=106914852640486882019.000452143d9aa600cc0d6&ll=52.369835,4.886341&spn=0.022429,0.036736&z=13&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
\ No newline at end of file diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 05228ec1..f2c30395 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <table class="gMetadata"> <tbody> <tr> diff --git a/modules/media_rss/views/feed.mrss.php b/modules/media_rss/views/feed.mrss.php index 25505f0d..c4a04604 100644 --- a/modules/media_rss/views/feed.mrss.php +++ b/modules/media_rss/views/feed.mrss.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <? echo "<?xml version=\"1.0\" ?>" ?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" diff --git a/modules/rearrange/views/rearrange.html.php b/modules/rearrange/views/rearrange.html.php index c9e03023..29a7cb77 100644 --- a/modules/rearrange/views/rearrange.html.php +++ b/modules/rearrange/views/rearrange.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <script type="text/javascript"> $(document).ready( function() { $('#gRearrangeTree').RearrangeTree({ diff --git a/modules/rearrange/views/rearrange_item_list.html.php b/modules/rearrange/views/rearrange_item_list.html.php index 1c5a39c1..31f3e80f 100644 --- a/modules/rearrange/views/rearrange_item_list.html.php +++ b/modules/rearrange/views/rearrange_item_list.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <ul class="jqueryFileTree" style="display: none"> <? foreach ($children as $item): ?> <? if ($item->type == "album"): ?> diff --git a/modules/search/views/search_link.html.php b/modules/search/views/search_link.html.php index 2aa2d83b..5451638e 100644 --- a/modules/search/views/search_link.html.php +++ b/modules/search/views/search_link.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <form id="gSearchForm"> <ul> <li> diff --git a/modules/tag/views/tag_block.html.php b/modules/tag/views/tag_block.html.php index e6f3f35b..9c8f3de5 100644 --- a/modules/tag/views/tag_block.html.php +++ b/modules/tag/views/tag_block.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <div id="gTagCloud" src="<?= url::site("tags") ?>"> <?= $cloud ?> </div> diff --git a/modules/tag/views/tag_cloud.html.php b/modules/tag/views/tag_cloud.html.php index 6abaf953..9deedb20 100644 --- a/modules/tag/views/tag_cloud.html.php +++ b/modules/tag/views/tag_cloud.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <ul> <? foreach ($tags as $tag): ?> <li class="size<?=(int)(($tag->count / $max_count) * 7) ?>"> diff --git a/modules/user/views/admin_groups.html.php b/modules/user/views/admin_groups.html.php index 1d1e37e6..5b5066dc 100644 --- a/modules/user/views/admin_groups.html.php +++ b/modules/user/views/admin_groups.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <div class="gBlock"> <h2><?= _("Group Administration") ?></h2> <div class="gBlockContent"> diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index 2c6f694a..eef7a1e5 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <div class="gBlock"> <h2><?= _("User Administration") ?></h2> <div class="gBlockContent"> diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php index 8b024815..951341c9 100644 --- a/modules/user/views/login.html.php +++ b/modules/user/views/login.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <ul id="gLoginMenu"> <? if ($user->guest): ?> <li><a href="<?= url::site("login") ?>" diff --git a/modules/watermark/views/admin_watermarks.html.php b/modules/watermark/views/admin_watermarks.html.php index 8473f620..77ce5d98 100644 --- a/modules/watermark/views/admin_watermarks.html.php +++ b/modules/watermark/views/admin_watermarks.html.php @@ -1,4 +1,4 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> +<?php defined("SYSPATH") or die("No direct script access.") ?> <div id="#gWatermarks"> <h1> <?= _("Watermarks") ?> </h1> <p> |