echo "<option value='" . phpAds_ZoneAppendRaw . "'" . ($zone['appendtype'] == phpAds_ZoneAppendRaw ? ' selected' : '') . ">" . $GLOBALS['strZoneAppendHTMLCode'] . "</option>"; if (count($available[phpAds_ZonePopup]) || count($available[phpAds_ZoneInterstitial])) { echo "<option value='" . phpAds_ZoneAppendZone . "'" . ($zone['appendtype'] == phpAds_ZoneAppendZone ? ' selected' : '') . ">" . $GLOBALS['strZoneAppendZoneSelection'] . "</option>"; } else { $zone['appendtype'] = phpAds_ZoneAppendRaw; } echo "</select></td></tr>"; // Line echo "<tr><td height='10' colspan='3'> </td></tr>"; echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td></tr>"; echo "<tr><td height='10' colspan='3'> </td></tr>"; if ($zone['appendtype'] == phpAds_ZoneAppendZone) { // Append zones // Read info from invocaton code if (!isset($appendid) || empty($appendid)) { $appendvars = phpAds_ParseAppendCode($zone['append']); $appendid = $appendvars[0]['zoneid']; $appenddelivery = $appendvars[0]['delivery']; if ($appenddelivery == phpAds_ZonePopup && !count($available[phpAds_ZonePopup])) { $appenddelivery = phpAds_ZoneInterstitial; } elseif ($appenddelivery == phpAds_ZoneInterstitial && !count($available[phpAds_ZoneInterstitial])) { $appenddelivery = phpAds_ZonePopup; } else { // Add globals for lib-invocation while (list($k, $v) = each($appendvars[1])) { if ($k != 'n' && $k != 'what') { $GLOBALS[$k] = addslashes($v); } } } }
echo "<tr><td height='10' colspan='3'> </td></tr>"; echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td></tr>"; echo "<tr><td height='10' colspan='3'> </td></tr>"; } if ($appendtype == phpAds_AppendPopup || $appendtype == phpAds_AppendInterstitial) { // Determine available zones $available_zones = $appendtype == phpAds_AppendPopup ? $available[phpAds_ZonePopup] : $available[phpAds_ZoneInterstitial]; // Append zones if ($appendtype != $appendtype_previous) { // Admin chose a different append type or this is the first // time this page is shown to the admin if ($appendtype == $banner['appendtype']) { // Admin chose the original append type, or this is the // first time this page is shown to the admin. // Load all data from the invocation code $appendvars = phpAds_ParseAppendCode($banner['append']); $appendwhat = $appendvars[0]['what']; // id's $appendselection = $appendvars[0]['selection']; // keyword, banner or zone while (list($k, $v) = each($appendvars[1])) { if ($k != 'n' && $k != 'what') { $GLOBALS[$k] = addslashes($v); } } } else { // Admin chose a different append type from the original // In this case it is not possible to reuse anything, set to defaults if (count($available_zones)) { $appendselection = phpAds_AppendZone; $appendwhat = '';