66 lines
3.1 KiB
PHP
66 lines
3.1 KiB
PHP
<?php
|
|
|
|
include "db.php";
|
|
|
|
$results = db_query("SELECT * FROM schools ORDER BY school_name");
|
|
|
|
while ($row = db_fetch_assoc($results)) {
|
|
extract($row);
|
|
|
|
$currentURL = $url;
|
|
|
|
$secureSite = TRUE;
|
|
if (strstr($currentURL,"hotlunches.ca")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"registrationnow.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"fieldtripsignup.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schoolclothingorder.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schoolclothesorder.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schoollunchorders.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"buyticketsnow.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schooltripfundraising.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schoolsuppliesorder.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"yearbookorders.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"gradfundraising.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"gradfundraising.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"milkprogram.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"chocolateorders.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"schoolhotdogs.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"hotdogday.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"pizzalunchorder.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"ouronlineorders.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"ouronlineorders.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"hotlunchesonline.net")) $secureSite = FALSE;
|
|
|
|
// Reseller URLs
|
|
if (strstr($currentURL,"esns.ca")) $secureSite = TRUE;
|
|
if (strstr($currentURL,"backpacfundraising.com")) $secureSite = TRUE;
|
|
|
|
if (strstr($currentURL,"pitapitottawa.ca")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"dukecatering.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"dukecateringflorida.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"frenchlunch.ca")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"fuelcatering.ca")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"coldlunchcounts.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"lunchinhand.net")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"lunchinhand.com")) $secureSite = FALSE;
|
|
if (strstr($currentURL,"pitapitmilton.ca")) $secureSite = TRUE;
|
|
if (strstr($currentURL,"pitapitmississauga.ca")) $secureSite = TRUE;
|
|
|
|
$wrepacSSL = TRUE;
|
|
if (strstr($currentURL,"wrepac.ca")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"aeslunchbox.com")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"clesharks.ca")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"ggpac.org")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"glenmoreschool.ca")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"larondepac.ca")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"stonecresthotlunch.ca")) $secureSite = $wrepacSSL;
|
|
if (strstr($currentURL,"sullivanpac.com")) $secureSite = $wrepacSSL;
|
|
|
|
$secure = 'N';
|
|
if ($secureSite) $secure = 'Y';
|
|
|
|
if (!$secureSite) printf("%-150s: %s\n","$school_name ($url)",$secure);
|
|
}
|
|
|
|
?>
|