Hits: 5912
Absolute path found. Loading as relative.
Try: ca/tecreations/ViewFile.php -- Online
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/tec_SiteRoot.php";
global $proberbs, $psalmsLow;
if ($time->daysInMonth == 31) {
if ($time->day == 31) {
$proverbs = array("31","1-4");
} else if ($time->day == 30) {
$proverbs = array("30","31","1-3");
} else if ($time->day == 29) {
$proverbs = array("29-31","1","2");
} else if ($time->day == 28) {
$proverbs = array("28-31","1");
} else {
if ($time->ampm == "AM") {
$proverbs = array(($time->day - 1) . "-" . ($time->day + 3));
} else {
$proverbs = array($time->day . "-" . ($time->day + 4));
}
}
} else if ($time->daysInMonth == 30) {
if ($time->ampm == "AM") {
if ($time->day == 1) {
$proverbs == array("31","1-4");
} else if ($time->day == 30) {
$proverbs = array("29-31","1","2");
} else if ($time->day == 29) {
$proverbs = array("28-31","1");
} else {
$proverbs = array($time->day - 1 . "-" . $time->day + 3);
}
} else {
if ($time->day == 1) {
$proverbs = array("1-5");
} else if ($time->day == 30) {
$proverbs = array(30, 31, 1, 2);
} else if ($time->day == 29) {
$proverbs = array("29-31",1,2);
} else if ($time->day == 28) {
$proverbs = array("28-31",1);
} else {
$proverbs = array($time->day . "-" . ($time->day + 4));
}
}
} else if ($time->daysInMonth == 29) {
if ($time->ampm == "AM") {
if ($time->day == 1) {
$proverbs = array("29-31",1,2);
} else if ($time->day == 29) {
$proverbs = array("28-31",1);
} else {
$proverbs = array($time->day - 1 . "-" . $time->day + 3);
}
} else {
if ($time->day == 29) {
$proverbs = array("28-31",1);
} else {
$proverbs = array("29-31",1,2);
}
}
} else if ($time->daysInMonth == 28) {
if ($time->ampmp == "AM") {
$proverbs = array($time->day - 1 . "-" . $time->day + 3);
} else {
$proverbs = array($time->day . "-" . $time->day + 4);
}
}
if ($time->ampm == "AM") {
$dayOfMonth = $time->day - 1;
} else {
$dayOfMonth = $time->day;
}
if ($dayOfMonth == 1) {
$psalmsLow = 1;
} else if ($dayOfMonth == 31) {
$psalmsLow = 1;
} else if ($dayOfMonth == 16) {
$psalmsLow = 1;
} else {
if ($dayOfMonth > 15) $day = $dayOfMonth - 15;
else $day = $dayOfMonth;
if ($day == 1) {
$psalmsLow = 1;
} else if ($day >= 2) {
$psalmsLow = (($day - 1) * 10) + 1;
}
}
?>
<a href="/ca/tecreations/scriptures/Psalm_97.php">Psalm 97</a>,<br />
<a href="/ca/tecreations/scriptures/Psalm_86.php">Psalm 86</a>,<br />
<pre>
<?php
global $PROTOCOL, $HOST_NAME, $TEC_PREFIX_DIR;
global $proverbs;
print("Proverbs ");
for($i = 0; $i < count($proverbs); $i++) {
$target = $proverbs[$i];
if (contains($target,"-")) {
$pos = strpos($target,"-");
$start = substr($target,0,$pos);
$finish = substr($target,$pos + 1,strlen($target) - (strlen($start) + 1));
for($j = (int)$start; $j <= (int)$finish;$j++) {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Proverbs_" . $j . ".php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/" . "Proverbs_" . $j . ".php";
if (exists($path)) {
print("<a href='$href'>$j</a>, ");
} else {
print($j . ", ");
}
}
} else {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Proverbs_$target.php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/Proverbs_$target.php";
if (exists($path)) {
print("<a href='$href'>$target</a>, ");
} else {
print("$target, ");
}
}
}
?>
</pre>
<a href="/ca/tecreations/scriptures/Genesis_1-2.3.php">Genesis 1-2:3</a>, <br />
<a href="/ca/tecreations/scriptures/Romans_1.php">Romans 1</a>, <br />
<a href="/ca/tecreations/scriptures/Romans_2.php">Romans 2</a>, <br />
<pre>
<?php
$baseCount = $time->day % 15 * 10 + 1;
print("Psalm ");
for($i = $baseCount; $i < $baseCount + 10; $i++) {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Psalm_" . $i . ".php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/" . "Psalm_" . $i . ".php";
if (exists($path)) {
print("<a href='$href'>$i</a>, ");
} else {
print($i . ", ");
}
}
?>
</pre>
<hr />
<a href="/ca/tecreations/scriptures/Psaume_97.php">Psaume 97</a>,<br />
<a href="/ca/tecreations/scriptures/Psaume_86.php">Psaume 86</a>,<br />
<pre>
<?php
global $PROTOCOL, $HOST_NAME, $TEC_PREFIX_DIR;
global $proverbs;
print("Proverbes ");
for($i = 0; $i < count($proverbs); $i++) {
$target = $proverbs[$i];
if (contains($target,"-")) {
$pos = strpos($target,"-");
$start = substr($target,0,$pos);
$finish = substr($target,$pos + 1,strlen($target) - (strlen($start) + 1));
for($j = (int)$start; $j <= (int)$finish;$j++) {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Proverbes_" . $j . ".php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/" . "Proverbes_" . $j . ".php";
if (exists($path)) {
print("<a href='$href'>$j</a>, ");
} else {
print($j . ", ");
}
}
} else {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Proverbes_" . $j . ".php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/" . "Proverbes_" . $j . ".php";
if (exists($path)) {
print("<a href='$href'>" . $proverbs[$i] . "</a>, ");
} else {
print($proverbs[$i] . ", ");
}
}
}
?>
</pre>
<a href="/ca/tecreations/scriptures/Genese_1-2.3.php">Genèse 1-2:3</a>,<br />
<a href="/ca/tecreations/scriptures/Romaines_1.php">Romaines 1</a>,<br />
<a href="/ca/tecreations/scriptures/Romaines_2.php">Romaines 2</a>,<br />
<pre>
<?php
$baseCount = $time->day % 15 * 10 + 1;
print("Psaume ");
for($i = $baseCount; $i < $baseCount + 10; $i++) {
$path = $DOCROOT . $TEC_PREFIX_DIR . "scriptures/Psaume_" . $i . ".php";
$href = $PROTOCOL . $HOST_NAME . "/" . $TEC_PREFIX_DIR . "scriptures/" . "Psaume_" . $i . ".php";
if (exists($path)) {
print("<a href='$href'>$i</a>, ");
} else {
print($i . ", ");
}
}
?>
</pre>