Skip to content

Commit

Permalink
Replaced short_open_tag's <? with <?php so that users can use default…
Browse files Browse the repository at this point in the history
… php configuration. Long live perl for allowing to do this automatically.
  • Loading branch information
tct committed Mar 13, 2012
1 parent 28af42d commit cb87310
Show file tree
Hide file tree
Showing 89 changed files with 161 additions and 161 deletions.
2 changes: 1 addition & 1 deletion www/_bottom.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?
<?php
mysql_close($dblink);
?>
2 changes: 1 addition & 1 deletion www/_top.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('secret/db_user.php');

if ($_SERVER['SERVER_NAME'] == 'localhost' || $_SERVER['SERVER_NAME'] == 'zen.dev') {
Expand Down
2 changes: 1 addition & 1 deletion www/api/add_vote_tag.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include ('../_top.php');
include ('../functions.php');
include_once('../hp-includes/people_lib.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/compass_vote_details.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include ('../_top.php');

include_once('../hp-includes/person_class.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/declarations_count.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('../secret/api_key.php');
include ('../_top.php');

Expand Down
2 changes: 1 addition & 1 deletion www/api/declarations_new.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('../secret/api_key.php');

include ('../_top.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/new_news_article.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('../secret/api_key.php');

include ('../_top.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/search.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('../secret/api_key.php');

include_once('../_top.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/set_govro_guy.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include_once('../secret/api_key.php');

include ('../_top.php');
Expand Down
2 changes: 1 addition & 1 deletion www/api/suggest_edit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
// Adds a key/value pair to a certain person in the moderation queue. This
// is currently used by the form where users can suggest a photo of a
// politician. That form eventually ends up here, with a key='photo' and the
Expand Down
2 changes: 1 addition & 1 deletion www/eurosim.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include ('_top.php');
include('pages/euro_2009/europarlament_functions.php');

Expand Down
46 changes: 23 additions & 23 deletions www/functions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
// NOTE: This giant file is full of legacy code and old functions. It should be
// organized and cleaned up, a bunch of these functions should be moved to
// templates.
Expand Down Expand Up @@ -31,7 +31,7 @@ function printWarning() {
la secțiunea <a href="?cid=6">despre site</a> sau la mine
<a href="http://www.vivi.ro/blog/?p=1015">pe blog</a>. Citește, e important.
</div>
<?
<?php
}


Expand Down Expand Up @@ -125,38 +125,38 @@ function showPresencePercentage($sortby, $order) {
$norder = $order == 'asc' ? 'desc' : 'asc';
?>
<tr class=header><td></td><td>
<a href=?cid=<?
echo $cid ?>&sort=name&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=name&order=<?php
echo $norder?>>Deputat</a></td>
<td>
<a href=?cid=<?
echo $cid ?>&sort=percent&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=percent&order=<?php
echo $norder?>>Procent de voturi<br>la care a fost prezent</a></td>
<td>
<a href=?cid=<?
echo $cid ?>&sort=idparty&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=idparty&order=<?php
echo $norder?>>Partid</a></td>
<td>
<a href=?cid=<?
echo $cid ?>&sort=seconds&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=seconds&order=<?php
echo $norder?>>Luări de cuvânt</a></td>
<td>Reales</td></tr>
<?
<?php
while ($rdep = mysql_fetch_array($sdep)) {
// ------------------ vote percentages
$timein = $rdep['timein'] / 1000;
$timeout = $rdep['timeout'] / 1000;
?>
<tr>
<td align=right><? echo $count++ ?></td>
<?
<td align=right><?php echo $count++ ?></td>
<?php
$name = moveFirstNameLast($rdep['name']);
?>
<td><a href="?name=<?
urlencode($name) ?>&cid=9&id=<?
<td><a href="?name=<?php
urlencode($name) ?>&cid=9&id=<?php
echo $rdep['idperson'] ?>"><?echo $name ?></a>
<br><span class="small gray">
<?
<?php
// ----------------- now print the times in office, if need be
// 1103259600 = 17 dec 2004
if ($timein != 1103259600 || $timeout != 0) {
Expand Down Expand Up @@ -307,19 +307,19 @@ function showSenatePresencePercentage($sortby, $order) {
?>
<table class=bigtable width=900>
<tr class=header><td></td><td>
<a href=?cid=<?
echo $cid ?>&sort=name&order=<? echo $norder?>>Senator</a></td>
<a href=?cid=<?php
echo $cid ?>&sort=name&order=<?php echo $norder?>>Senator</a></td>
<td>
<a href=?cid=<?
echo $cid ?>&sort=percent&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=percent&order=<?php
echo $norder?>>Procent de voturi<br>la care a fost prezent</a>
<br>începând cu Sep 2007</td>
<td>
<a href=?cid=<?
echo $cid ?>&sort=idparty&order=<?
<a href=?cid=<?php
echo $cid ?>&sort=idparty&order=<?php
echo $norder?>>Partid</a></td>
<td>Reales</td></tr>
<?
<?php
while ($rdep = mysql_fetch_array($sdep)) {
echo "<tr>";
echo "<td align=right>" . ($count++) . ".</td>";
Expand Down
2 changes: 1 addition & 1 deletion www/functions_election_stats.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
function getShortPartyName($name) {
switch($name) {
case 'partidul democrat liberal':
Expand Down
2 changes: 1 addition & 1 deletion www/header.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<title><? echo $title ?> - Harta politicii din România</title>
<title><?php echo $title ?> - Harta politicii din România</title>
</head>
<body onload="loadHandler();">
<center>
Expand Down
2 changes: 1 addition & 1 deletion www/hooks/add_new_person.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require_once('../secret/db_user.php');
require_once('../_top.php');

Expand Down
4 changes: 2 additions & 2 deletions www/hp-admin/admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include('../_top.php');
include('../hp-includes/people_lib.php');
?>
Expand All @@ -9,7 +9,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?
<?php
echo '<b>Photos</b><br>';

$_POST['id'] = (int)$_POST['id'];
Expand Down
4 changes: 2 additions & 2 deletions www/hp-includes/people_lib.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require("person_class.php");

/**
Expand Down Expand Up @@ -509,7 +509,7 @@ function setCommitCookieAndRedirect() {
document.location.href = baseUrl + "?rand=" + Math.random() * 10000;
}
</script>
<?
<?php
die("Time to ".
"<a href=\"javascript:setCommitCookieAndRedirect();\">commit</a>.");
}
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/people_util.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
/**
* Tests the existance of a wordpress post for this person. If a post does not
* exist, a post is created.
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/person_class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require('string_utils.php');

/**
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/search.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
// If you are accessing this page directly, redirect to the front page
if (!$DB_USER) {
header('Location: /');
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/stats_utils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
/**
* Private helper function for a stats object where I add up stuff.
* This is a very temporary function, I should delete it I think.
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/string_utils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
/**
* @fileoverview Various utilities related to string operations, like removing
* diacritics, measuring the distance in between two strings, etc.
Expand Down
2 changes: 1 addition & 1 deletion www/hp-includes/user_utils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
// Various functions with functionality related to users of the site, grabbing
// their handle name, permissions, etc.

Expand Down
6 changes: 3 additions & 3 deletions www/hp-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
<meta property="fb:admins" content="521485175" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="styles.css?v=<? echo md5_file('styles.css');?>" />
<link rel="stylesheet" href="styles.css?v=<?php echo md5_file('styles.css');?>" />
<script src="js/swfobject/swfobject.js" type="text/javascript"></script>

<?php
// Include or not include some scripts, depending on whether this is localhost
// or not.
if ($_SERVER['SERVER_NAME'] == 'localhost') { ?>
<script src="js/politica_localhost.js" type="text/javascript"></script>
<? } ?>
<?php } ?>

<script src="js/politica.js?v=<? echo md5_file('js/politica.js');?>"
<script src="js/politica.js?v=<?php echo md5_file('js/politica.js');?>"
type="text/javascript"></script>

<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions www/hp-scripts/candidates_to_people.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require("../_top.php");
require("../hp-includes/people_lib.php");

Expand Down Expand Up @@ -49,7 +49,7 @@ function candidatesArePeopleToo() {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body onload="window.scrollTo(0, 1000000);">
<pre>
<?
<?php
candidatesArePeopleToo();

include("../_bottom.php");
Expand Down
4 changes: 2 additions & 2 deletions www/hp-scripts/catavencu_to_people.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require("../_top.php");
require("../hp-includes/people_lib.php");

Expand Down Expand Up @@ -68,7 +68,7 @@ function infoFunction($person, $idString) {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body onload="window.scrollTo(0, 1000000);">
<pre>
<?
<?php
candidatesArePeopleToo();

include("../_bottom.php");
Expand Down
4 changes: 2 additions & 2 deletions www/hp-scripts/cdep_2008_to_people.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require("../_top.php");
require("../hp-includes/people_lib.php");

Expand Down Expand Up @@ -81,7 +81,7 @@ function infoFunction($person, $idString) {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body onload="window.scrollTo(0, 1000000);">
<pre>
<?
<?php
candidatesArePeopleToo();

include("../_bottom.php");
Expand Down
4 changes: 2 additions & 2 deletions www/hp-scripts/correct_images.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include("../_top.php");

$s = mysql_query("select idperson, imgurl ".
Expand Down Expand Up @@ -41,6 +41,6 @@

</body>
</html>
<?
<?php
include("../_bottom.php");
?>
2 changes: 1 addition & 1 deletion www/hp-scripts/correct_names.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php

// This is a one-off script that loads a CSV with personId and name and
// replaces the name in the people database with this new name.
Expand Down
4 changes: 2 additions & 2 deletions www/hp-scripts/correct_party_id.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include("../_top.php");

$s = mysql_query("select id, name from results_2008_parties");
Expand Down Expand Up @@ -44,6 +44,6 @@

</body>
</html>
<?
<?php
include("../_bottom.php");
?>
4 changes: 2 additions & 2 deletions www/hp-scripts/correct_results_history.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include("../_top.php");

$s = mysql_query(
Expand All @@ -25,6 +25,6 @@

</body>
</html>
<?
<?php
include("../_bottom.php");
?>
4 changes: 2 additions & 2 deletions www/hp-scripts/correct_results_parties.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
include("../_top.php");

$s = mysql_query(
Expand Down Expand Up @@ -40,6 +40,6 @@

</body>
</html>
<?
<?php
include("../_bottom.php");
?>
4 changes: 2 additions & 2 deletions www/hp-scripts/deputies_to_people.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
require("../_top.php");
require("../hp-includes/people_lib.php");

Expand Down Expand Up @@ -76,7 +76,7 @@ function deputiesArePeopleToo() {
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<pre>
<?
<?php
deputiesArePeopleToo();

include("../_bottom.php");
Expand Down
Loading

0 comments on commit cb87310

Please sign in to comment.