Permalink
Browse files

Changed all dirname(__FILE__)s to __DIR__s

  • Loading branch information...
sergeychernyshev committed Jan 9, 2013
1 parent b1ea015 commit b1cdcfef59a710deed682332ce57e2d494366ab3
Showing with 206 additions and 206 deletions.
  1. +2 −2 Invitation.php
  2. +4 −4 admin/account.php
  3. +3 −3 admin/activity.php
  4. +1 −1 admin/admin.php
  5. +3 −3 admin/badge.php
  6. +3 −3 admin/badges.php
  7. +3 −3 admin/bymodule.php
  8. +3 −3 admin/campaigns.php
  9. +4 −4 admin/choose_engine.php
  10. +3 −3 admin/cohorts.php
  11. +1 −1 admin/controller/choose_engine.php
  12. +3 −3 admin/features.php
  13. +4 −4 admin/header.php
  14. +3 −3 admin/index.php
  15. +5 −5 admin/invitations.php
  16. +4 −4 admin/outstanding.php
  17. +3 −3 admin/plan.php
  18. +3 −3 admin/sources.php
  19. +1 −1 admin/stopimpersonation.php
  20. +4 −4 admin/transaction_log.php
  21. +3 −3 admin/user.php
  22. +3 −3 admin/users.php
  23. +1 −1 admin/view/outstanding.php
  24. +1 −1 admin/view/transaction_log.php
  25. +1 −1 aggregatepoints.php
  26. +3 −3 badges.php
  27. +3 −3 change_account.php
  28. +2 −2 choose_engine.php
  29. +1 −1 classes/Account.php
  30. +1 −1 classes/CampaignTracker.php
  31. +2 −2 classes/PaymentEngineModule.php
  32. +1 −1 classes/Plan.php
  33. +2 −2 classes/StartupAPI.php
  34. +3 −3 classes/StartupAPIModule.php
  35. +4 −4 classes/User.php
  36. +1 −1 controller/account/plans.php
  37. +2 −2 controller/engine/choose_engine.php
  38. +1 −1 cron.php
  39. +3 −3 dbupgrade.php
  40. +15 −15 default_config.php
  41. +4 −4 edit.php
  42. +3 −3 global.php
  43. +1 −1 index.php
  44. +2 −2 login.php
  45. +2 −2 logout.php
  46. +3 −3 maillist.php
  47. +2 −2 maintenance.php
  48. +4 −4 manage_account.php
  49. +3 −3 modules/PaymentEngine_Manual/admin.php
  50. +2 −2 modules/email/login.php
  51. +1 −1 modules/etsy/index.php
  52. +2 −2 modules/facebook/facebook.php
  53. +1 −1 modules/facebook/index.php
  54. +2 −2 modules/facebook/logout.php
  55. +1 −1 modules/google_oauth/index.php
  56. +1 −1 modules/linkedin/index.php
  57. +1 −1 modules/meetup/index.php
  58. +1 −1 modules/ohloh/index.php
  59. +1 −1 modules/statusnet/index.php
  60. +3 −3 modules/stripe/admin.php
  61. +1 −1 modules/twitter/index.php
  62. +2 −2 modules/usernamepass/forgotpassword.php
  63. +2 −2 modules/usernamepass/passwordreset.php
  64. +2 −2 oauth_callback.php
  65. +2 −2 plans.php
  66. +3 −3 register.php
  67. +1 −1 sample.php
  68. +2 −2 send_email_verification_code.php
  69. +4 −4 show_badge.php
  70. +4 −4 subscription_details.php
  71. +3 −3 tests/TestClock.php
  72. +2 −2 tests/TestPaymentEngine.php
  73. +2 −2 tests/TestPayments.php
  74. +2 −2 tests/TestPlan.php
  75. +2 −2 tests/TestUser.php
  76. +1 −1 tests/all_tests.php
  77. +4 −4 transaction_log.php
  78. +7 −7 users.php
  79. +2 −2 users_config.sample.php
  80. +2 −2 verify_email.php
  81. +1 −1 version.php
  82. +1 −1 view/account/transaction_log.php
  83. +1 −1 view/engine/choose_engine.php
View
@@ -1,6 +1,6 @@
<?php
require_once(dirname(__FILE__).'/global.php');
require_once(dirname(__FILE__).'/classes/User.php');
require_once(__DIR__.'/global.php');
require_once(__DIR__.'/classes/User.php');
/**
* Invitation class
View
@@ -1,12 +1,12 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'accounts';
include(dirname(__FILE__).'/view/account.php');
include(__DIR__.'/view/account.php');
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
StartupAPI::$template->display('@admin/account.html.twig', $template_data);
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,5 +1,5 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'activity';
@@ -56,7 +56,7 @@
$total = 0;
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
?>
<script type='text/javascript' src='swfobject/swfobject/swfobject.js'></script>
<script type='text/javascript' src='http://www.google.com/jsapi'></script>
@@ -295,4 +295,4 @@
</div>
<?php
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,4 +1,4 @@
<?php
require_once(dirname(dirname(__FILE__)).'/users.php');
require_once(dirname(__DIR__).'/users.php');
UserTools::preventCSRF();
View
@@ -1,5 +1,5 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
if (!array_key_exists('id', $_GET) || is_null($badge = Badge::getByID($_GET['id']))) {
header("HTTP/1.0 404 Not Found");
@@ -8,7 +8,7 @@
$ADMIN_SECTION = 'badges';
$BREADCRUMB_EXTRA = $badge->getTitle();
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
$largeBadgeSize = 300;
$smallBadgeSize = 57;
@@ -58,4 +58,4 @@
?>
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
$ADMIN_SECTION = 'badges';
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
?>
<div class="span9">
<h2>Badges</h2>
@@ -32,4 +32,4 @@
?>
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'bymodule';
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
?>
<script type='text/javascript' src='swfobject/swfobject/swfobject.js'></script>
<script type='text/javascript' src='http://www.google.com/jsapi'></script>
@@ -83,4 +83,4 @@
</div>
<?php
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
$ADMIN_SECTION = 'campaigns';
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
$days = 0;
if (array_key_exists('days', $_GET)) {
@@ -70,4 +70,4 @@
</div>
<?php
}
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,12 +1,12 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'payment_method';
include(dirname(__FILE__).'/view/choose_engine.php');
include(__DIR__.'/view/choose_engine.php');
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
StartupAPI::$template->display('@admin/choose_engine.html.twig', $template_data);
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -3,7 +3,7 @@
* @package StartupAPI
* @subpackage Analytics\CohortAnalysis
*/
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
$selectedactivityid = null;
@@ -17,7 +17,7 @@
if (array_key_exists($selectedactivityid, UserConfig::$activities)) {
$BREADCRUMB_EXTRA = UserConfig::$activities[$selectedactivityid][0];
}
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
?>
<div class="span9">
@@ -299,5 +299,5 @@
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
@@ -1,5 +1,5 @@
<?php
require_once(dirname(dirname(__FILE__)).'/admin.php');
require_once(dirname(__DIR__).'/admin.php');
$engine = htmlspecialchars($_REQUEST['engine']);
$account_id = htmlspecialchars($_REQUEST['account_id']);
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'features';
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
?>
<style>
tr.disabled td{
@@ -120,4 +120,4 @@
?>
</div>
<?php
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,12 +1,12 @@
<?php
require_once(dirname(dirname(__FILE__)) . '/global.php');
require_once(dirname(dirname(__FILE__)) . '/classes/User.php');
require_once(dirname(__FILE__) . '/adminMenus.php');
require_once(dirname(__DIR__) . '/global.php');
require_once(dirname(__DIR__) . '/classes/User.php');
require_once(__DIR__ . '/adminMenus.php');
$current_user = User::require_login(false);
if (!$current_user->isAdmin()) {
require_once(dirname(__FILE__) . '/admin_access_only.php');
require_once(__DIR__ . '/admin_access_only.php');
exit;
}
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
$ADMIN_SECTION = 'home';
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
$total_users = User::getTotalUsers();
$active_users = User::getActiveUsers();
@@ -112,5 +112,5 @@
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,14 +1,14 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$user = User::require_login();
if (!$user->isAdmin()) {
require_once(dirname(__FILE__).'/admin_access_only.php');
require_once(__DIR__.'/admin_access_only.php');
exit;
}
require_once(dirname(dirname(__FILE__)).'/Invitation.php');
require_once(dirname(__DIR__).'/Invitation.php');
if (array_key_exists('save', $_POST))
{
@@ -53,7 +53,7 @@
$ADMIN_SECTION = 'invitations';
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
?>
<script>
$(document).ready(function() {
@@ -196,4 +196,4 @@
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,12 +1,12 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'outstanding';
include(dirname(__FILE__).'/view/outstanding.php');
include(__DIR__.'/view/outstanding.php');
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
StartupAPI::$template->display('@admin/outstanding.html.twig', $template_data);
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,5 +1,5 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
if (!array_key_exists('slug', $_GET)) {
header("HTTP/1.0 400 Plan slug is not specified");
@@ -18,7 +18,7 @@
$ADMIN_SECTION = 'plans';
$BREADCRUMB_EXTRA = $plan->name;
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
?>
<div class="span9">
<h2><?php echo UserTools::escape($plan->name); ?></h2>
@@ -54,4 +54,4 @@
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
$ADMIN_SECTION = 'sources';
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
$days = 30;
@@ -30,4 +30,4 @@
</table>
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
@@ -1,5 +1,5 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$real_user = User::get(false); // getting real user, ignoring impersonation
@@ -1,12 +1,12 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'transactions';
include(dirname(__FILE__).'/view/transaction_log.php');
include(__DIR__.'/view/transaction_log.php');
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
StartupAPI::$template->display('@admin/transaction_log.html.twig', $template_data);
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
View
@@ -1,5 +1,5 @@
<?php
require_once(dirname(__FILE__) . '/admin.php');
require_once(__DIR__ . '/admin.php');
if (!array_key_exists('id', $_GET) || !$_GET['id']) {
header("HTTP/1.0 400 User ID is not specified");
@@ -49,7 +49,7 @@
$ADMIN_SECTION = 'registrations';
$BREADCRUMB_EXTRA = $user->getName();
require_once(dirname(__FILE__) . '/header.php');
require_once(__DIR__ . '/header.php');
?>
<div class="span9">
@@ -250,4 +250,4 @@
</div>
<?php
require_once(dirname(__FILE__) . '/footer.php');
require_once(__DIR__ . '/footer.php');
View
@@ -1,8 +1,8 @@
<?php
require_once(dirname(__FILE__).'/admin.php');
require_once(__DIR__.'/admin.php');
$ADMIN_SECTION = 'registrations';
require_once(dirname(__FILE__).'/header.php');
require_once(__DIR__.'/header.php');
$dailyregs = User::getDailyRegistrations();
@@ -184,4 +184,4 @@
</div>
<?php
require_once(dirname(__FILE__).'/footer.php');
require_once(__DIR__.'/footer.php');
Oops, something went wrong.

0 comments on commit b1cdcfe

Please sign in to comment.