This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #71 Added die() line to template files
- Loading branch information
Showing
79 changed files
with
186 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,74 @@ | ||
<h3>Activity Feed</h3> | ||
<?php | ||
|
||
foreach($allactivities as $activity) { | ||
|
||
/* Use the activity->type to determine the type of activity (duh?) | ||
Constants are in app.config.php | ||
Like here, I put a specific link to the PIREP at the end of the message | ||
You can use the if/else's to add specific images? | ||
$activity->refid is the ID of the thing it's referring to, so if it's a | ||
new PIREP, the refid will be the ID of the PIREP | ||
$activity-> also contains all the fields about the pilot who this notice | ||
is about | ||
*/ | ||
|
||
$link_title = ''; | ||
$link_href = ''; | ||
if($activity->type == ACTIVITY_NEW_PIREP) { | ||
|
||
$link_href = url('/pireps/view/'.$activity->refid); | ||
$link_title = 'View Flight Report'; | ||
|
||
} elseif($activity->type == ACTIVITY_TWITTER) { | ||
|
||
$link_href = 'http://twitter.com/#!/'.Config::get('TWITTER_AIRLINE_ACCOUNT').'/status/'.$activity->refid; | ||
$link_title = 'View Tweet'; | ||
|
||
} elseif($activity->type == ACTIVITY_NEW_PILOT) { | ||
$link_href = url('/profile/view/'.$activity->pilotid); | ||
$link_title = 'View Profile'; | ||
} | ||
?> | ||
<p> | ||
<?php | ||
/* Example, if it's a twitter status update (ACTIVITY_TWITTER), | ||
then show an image (in this case, a small Twitter icon) */ | ||
if($activity->type == ACTIVITY_TWITTER) { | ||
echo '<img src="'.fileurl('/lib/images/twitter.png').'" alt="twitter update" />'; | ||
} | ||
|
||
?> | ||
<?php | ||
/* If there is a pilot associated with this feed update, show their name | ||
and a link to their profile page */ | ||
if($activity->pilotid != 0) { | ||
$pilotCode = PilotData::getPilotCode($activity->code, $activity->pilotid); | ||
?> | ||
|
||
<a href="<?php echo url('/profile/view/'.$activity->pilotid);?>"> | ||
<?php echo $pilotCode.' '.$activity->firstname.' '.$activity->lastname?> | ||
</a> | ||
|
||
<?php | ||
} /* End if pilot ID != 0 */ | ||
?> | ||
|
||
<?php | ||
/* Show the activity message itself */ | ||
echo stripslashes($activity->message); | ||
?> | ||
|
||
<?php | ||
if($link_href != '') { | ||
echo ' <a href="'.$link_href.'">'.$link_title.'</a>'; | ||
} | ||
?> | ||
</p> | ||
<?php | ||
} | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Activity Feed</h3> | ||
<?php | ||
|
||
foreach($allactivities as $activity) { | ||
|
||
/* Use the activity->type to determine the type of activity (duh?) | ||
Constants are in app.config.php | ||
Like here, I put a specific link to the PIREP at the end of the message | ||
You can use the if/else's to add specific images? | ||
$activity->refid is the ID of the thing it's referring to, so if it's a | ||
new PIREP, the refid will be the ID of the PIREP | ||
$activity-> also contains all the fields about the pilot who this notice | ||
is about | ||
*/ | ||
|
||
$link_title = ''; | ||
$link_href = ''; | ||
if($activity->type == ACTIVITY_NEW_PIREP) { | ||
|
||
$link_href = url('/pireps/view/'.$activity->refid); | ||
$link_title = 'View Flight Report'; | ||
|
||
} elseif($activity->type == ACTIVITY_TWITTER) { | ||
|
||
$link_href = 'http://twitter.com/#!/'.Config::get('TWITTER_AIRLINE_ACCOUNT').'/status/'.$activity->refid; | ||
$link_title = 'View Tweet'; | ||
|
||
} elseif($activity->type == ACTIVITY_NEW_PILOT) { | ||
$link_href = url('/profile/view/'.$activity->pilotid); | ||
$link_title = 'View Profile'; | ||
} | ||
?> | ||
<p> | ||
<?php | ||
/* Example, if it's a twitter status update (ACTIVITY_TWITTER), | ||
then show an image (in this case, a small Twitter icon) */ | ||
if($activity->type == ACTIVITY_TWITTER) { | ||
echo '<img src="'.fileurl('/lib/images/twitter.png').'" alt="twitter update" />'; | ||
} | ||
|
||
?> | ||
<?php | ||
/* If there is a pilot associated with this feed update, show their name | ||
and a link to their profile page */ | ||
if($activity->pilotid != 0) { | ||
$pilotCode = PilotData::getPilotCode($activity->code, $activity->pilotid); | ||
?> | ||
|
||
<a href="<?php echo url('/profile/view/'.$activity->pilotid);?>"> | ||
<?php echo $pilotCode.' '.$activity->firstname.' '.$activity->lastname?> | ||
</a> | ||
|
||
<?php | ||
} /* End if pilot ID != 0 */ | ||
?> | ||
|
||
<?php | ||
/* Show the activity message itself */ | ||
echo stripslashes($activity->message); | ||
?> | ||
|
||
<?php | ||
if($link_href != '') { | ||
echo ' <a href="'.$link_href.'">'.$link_title.'</a>'; | ||
} | ||
?> | ||
</p> | ||
<?php | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Thanks!</h3> | ||
<p>Your request has been submitted, we will be in touch shortly.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
echo '<div id="error" class="'.$class.'">'.$message.'</div>'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
/** | ||
* STOP! HAMMER TIME! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<div class="jqmWindow" id="jqmdialog"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<div id="messagebox"> | ||
<?php echo $message;?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
echo '<div id="success">'.$message.'</div>'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h1>Downloads</h1> | ||
|
||
<?php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
/** | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<div id="mainbox"> | ||
<?php | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
if(!$lastbids) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
foreach($pilot_list as $pilot) { | ||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Error!</h3> | ||
<p>You are already logged in!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
if($redir == '') | ||
$redir = SITE_URL; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<p>This email address was not found in our database. If you feel this was an error, please contact an administrator.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Password Reset</h3> | ||
<p>Your new password has been sent to your email!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Sorry!</h3> | ||
<p>Your registration was not accepted. Please contact the administrator for additional details.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<h3>Unconfirmed</h3> | ||
|
||
<p>Sorry! Your registration has not yet been checked by an administrator. Please try again later. You will receive an email when your registration has been accepted</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<?php | ||
/* This page should be a complete HTML page */ | ||
?> | ||
<html> | ||
<head> | ||
<title>Down for maintenance - phpVMS Virtual Airline</title> | ||
<style type="text/css"> | ||
body { font-family: verdana; font-size: 16px; color: #001B6B } | ||
h1 { font-weight:16px;font-size:18px;color:#6B001B;margin:0 0 4px 0; } | ||
div#codon_crit_error { border:#999 1px solid;background-color:#fff;padding:20px 20px 12px 20px;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="codon_crit_error" > | ||
<h1>Down for maintenance</h1> | ||
<p>We are currently down for maintenance, please check back soon.</p> | ||
</div> | ||
</body> | ||
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> | ||
<?php | ||
/* This page should be a complete HTML page */ | ||
?> | ||
<html> | ||
<head> | ||
<title>Down for maintenance - phpVMS Virtual Airline</title> | ||
<style type="text/css"> | ||
body { font-family: verdana; font-size: 16px; color: #001B6B } | ||
h1 { font-weight:16px;font-size:18px;color:#6B001B;margin:0 0 4px 0; } | ||
div#codon_crit_error { border:#999 1px solid;background-color:#fff;padding:20px 20px 12px 20px;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="codon_crit_error" > | ||
<h1>Down for maintenance</h1> | ||
<p>We are currently down for maintenance, please check back soon.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.