<?php error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); if (!defined('IS_ADMIN')) define('IS_ADMIN', false); require_once('recaptcha.php'); if (isset($plugin_name)) $pagetitle = "$plugin_name :: Digero's Decal Plugins"; else $pagetitle = "Digero's Decal Plugins"; $styles = array("Blue", "Gray", "Green", "Olive", "Maroon", "Purple", "Tan", "BBTech"); unset($style_name); if (isset($_GET['style'])) $style_name = $_GET['style']; else if (isset($_COOKIE['style'])) $style_name = $_COOKIE['style']; if (isset($style_name) && in_array($style_name, $styles) && file_exists("$style_name.css")) setcookie('style', $style_name, strtotime("+1 year")); else $style_name = $styles[0]; // Generates HTML for highlighting the menu on the left function hglt($rowid, $icon_or_text, $additionalMouseOver = '', $additionalMouseOut = '') { if ($icon_or_text == 'icon') $cls = 'class="row3"'; elseif ($icon_or_text == 'text') $cls = 'class="row1"'; $id = $rowid . '_' . $icon_or_text; return " $cls id='$id' " . "onMouseOver=\"highlight('$rowid'); " . htmlspecialchars($additionalMouseOver) . "\" " . "onMouseOut=\"unhighlight('$rowid'); " . htmlspecialchars($additionalMouseOut) . "\" "; } // Generates HTML for showing an Icon function icon($name, $type = "gif", $size = 16, $alt = "") { if ($type == "png") return png_img("icons/$name.png", $alt, "0", "height='$size' width='$size'"); return "<img src='icons/$name.$type' height='$size' width='$size' border='0' alt=\"" . htmlspecialchars($alt) . "\">"; } // Generates HTML for a download link function download($plugin, $ver, $class = '', $showPluginName = true, $source = '') { if ($class) $class = " class='$class'"; // Classy!! $text = ($showPluginName ? "$plugin " : '') . "v$ver"; if ($source) $source = "&source=$source"; return "<a$class href='download.php?plugin=$plugin&ver=$ver$source'>$text</a>"; } //IE doesn't autmatically use alpha transparency for images $iePng = false; if (strpos($_SERVER['HTTP_USER_AGENT'], "MSIE ") !== false) { $IEver = (float) substr($_SERVER['HTTP_USER_AGENT'], strpos($_SERVER['HTTP_USER_AGENT'], "MSIE ") + 5); $iePng = ($IEver >= 5.5 && $IEver < 7.0); } function png_img($src, $alt = "", $border = "0", $extras = "") { global $iePng; if ($iePng) { return "<img style=\"height:1; width:1; " . "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$src');\" " . "alt=\"$alt\" border=\"$border\" $extras>"; } return '<img src="' . $src . '" alt="' . $alt . '" title="' . $alt . '" border="' . $border . '" ' . $extras . ' />'; } function style_img($img_name) { global $style_name; return "images/$style_name/$img_name"; } function make_show_hide($ele_id, $text) { return '<span onClick="show_hide_ele(\'' . $ele_id . '\')" style="cursor:pointer;">' . '<img id="' . $ele_id . '_icon" src="minus.gif"> ' . $text . '</span>'; } function make_autohide($ele_id) { if (strpos($_COOKIE['hidden_elements'], $ele_id . ',') !== false) return '<script language="javascript"> show_hide_ele("' . $ele_id . '"); </script>'; return ''; } // baseNameId - base for the php page and icon name; e.g. allegchat define('UPDATED', 0); define('PENDING', 1); define('RETIRED', 2); function make_headerlink_tr($name, $baseNameId, $icon_type = "gif", $todStatus = UPDATED) { $isCurrentPage = strpos($_SERVER['SCRIPT_NAME'], $baseNameId) !== false; return make_headerlink_tr_ex($name, $baseNameId, $icon_type, $isCurrentPage, $todStatus); } function make_headerlink_tr_ex($name, $baseNameId, $icon_type = "gif", $isCurrentPage, $todStatus = UPDATED) { $icon = icon($baseNameId, $icon_type, 16, $name); $additionalMouseOver = ''; $additionalMouseOut = ''; if ($todStatus != UPDATED) { $mouseOverIcon = ($todStatus == PENDING) ? 'exclamationIcon' : 'redXIcon'; $additionalMouseOver = "document.getElementById('$baseNameId"."_icon').innerHTML=$mouseOverIcon"; $additionalMouseOut = "document.getElementById('$baseNameId"."_icon').innerHTML='" . addslashes($icon) . "'"; } $link = " "; //" style='cursor:pointer' onClick='window.location.href=\"$baseNameId.php\"' "; $class = 'genmed menulink' . ($isCurrentPage ? ' menucurrent' : ''); $ret = ' <tr> <td ' . $link . hglt($baseNameId, 'icon', $additionalMouseOver, $additionalMouseOut) . '>' . $icon . '</td> <td width="100%"' . $link . hglt($baseNameId, 'text', $additionalMouseOver, $additionalMouseOut) . ' nowrap>' . "<a href='$baseNameId.php' class='$class'>$name</a>" . '</td> </tr>'; return $ret; } function make_external_headerlink_tr($name, $baseNameId, $url, $outOfSiteIcon = false, $icon_type = "gif") { $out_of_site = ($outOfSiteIcon) ? (' ' . png_img('out_of_site.png', 'Leaving this site', '0', 'width="17" height="12"')) : ''; $target = ($outOfSiteIcon) ? "target='_blank'" : ''; $link = " "; //" style='cursor:pointer' onClick='window.location.href=\"$url\"' "; $class = 'genmed menulink'; return ' <tr> <td ' . $link . hglt($baseNameId, 'icon') . '>' . icon($baseNameId, $icon_type) . '</td> <td width="100%" ' . $link . hglt($baseNameId, 'text') . ' nowrap>' . "<a $target href='$url' class='$class'>$name$out_of_site</a>" . '</td> </tr>'; } function make_quest_timer_tr($name, $mode) { $class = 'genmed menulink' . ($_REQUEST['mode'] == $mode ? ' menucurrent' : ''); return ' <tr> <td ' . hglt("qt_$mode",'icon') . '> </td> <td width="100%" ' . hglt("qt_$mode",'text') . ' nowrap>' . "<div style='float:left;'> • </div><a href='quest_timer.php?mode=$mode' class='$class'>$name</a>" . '</td> </tr>'; } // For debugging function js_alert($str) { $str = str_replace("\n", '\n', addslashes($str)); echo "<script>alert('$str')</script>"; } $recaptcha_error = null; $recaptcha_theme = "white"; if ($style_name == "BBTech") $recaptcha_theme = "blackglass"; $mailhide_url = recaptcha_mailhide_url($mailhide_pubkey, $mailhide_privkey, "digero@gmail.com"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?=$pagetitle?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php foreach ($styles as $style): ?> <link rel="<?= ($style == $style_name) ? 'stylesheet' : 'alternate stylesheet' ?>" type="text/css" href="<?=$style?>.css" title="<?=$style?>"> <?php endforeach; ?> <script type="text/javascript" language="javascript"> var currentStyleSheet = "<?=$style_name?>"; function setStyleSheet(newStyleSheet) { if (!document.styleSheets || currentStyleSheet == newStyleSheet) return; for (var i = 0; i < document.styleSheets.length; i++) { if (document.styleSheets[i].title == currentStyleSheet) document.styleSheets[i].disabled = true; if (document.styleSheets[i].title == newStyleSheet) document.styleSheets[i].disabled = false; } currentStyleSheet = newStyleSheet; setcookie('style', newStyleSheet, 365); } function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className = cls + " " + ele.className; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } }
function highlight(tr) { addClass(document.getElementById(tr + '_icon'), 'highlight1'); addClass(document.getElementById(tr + '_text'), 'highlight3'); } function unhighlight(tr) { removeClass(document.getElementById(tr + '_icon'), 'highlight1'); removeClass(document.getElementById(tr + '_text'), 'highlight3'); } var exclamationIcon = "<?= addslashes(png_img('icons/exclamation.png', '', '0', 'height="16", width="16"')) ?>"; var greenCheckIcon = "<?= addslashes(png_img('icons/greencheck.png', '', '0', 'height="16", width="16"')) ?>"; var redXIcon = "<?= addslashes(png_img('icons/redx.png', '', '0', 'height="16", width="16"')) ?>"; function toggleVisible(elementId, plusMinusImageId) { var element = document.getElementById(elementId); var plusMinusImage = null; if (plusMinusImageId) plusMinusImage = document.getElementById(plusMinusImageId); if (element.style.display.toLowerCase() == 'none') { element.style.display = 'inline'; if (plusMinusImage) plusMinusImage.src = 'minus.gif'; } else { element.style.display = 'none'; if (plusMinusImage) plusMinusImage.src = 'plus.gif'; } } function show_ele(ele_id) { toggle_visible_ele(ele_id, true); } function show_hide_ele(ele_id) { toggle_visible_ele(ele_id, false); } function toggle_visible_ele(ele_id, override_show) { var ele = document.getElementById(ele_id); if (ele.style.display.toLowerCase() == 'none') { var display = ele.getAttribute('prevDisplay'); if (!display) display = 'block'; ele.style.display = display; document.images[ele_id + '_icon'].src = 'minus.gif'; replaced = false; while (hidden_elements.indexOf(ele_id + ',') > -1) { hidden_elements = hidden_elements.replace(ele_id + ',', ''); replaced = true; } if (replaced) { setcookie('hidden_elements', hidden_elements, 365); } } else if(!override_show && !ele.getAttribute('no_hiding')) { ele.setAttribute('prevDisplay', ele.style.display); ele.style.display = 'none'; document.images[ele_id + '_icon'].src = 'plus.gif'; while (hidden_elements.indexOf(ele_id + ',') > -1) hidden_elements = hidden_elements.replace(ele_id + ',', ''); hidden_elements += ele_id + ','; setcookie('hidden_elements', hidden_elements, 365); } } function setcookie(cookieName, cookieValue, nDays) { var expire = new Date(); if (nDays == null || nDays == 0) nDays = 1; expire.setTime(expire.getTime() + 3600000 * 24 * nDays); document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString(); } var hidden_elements = '<?= $_COOKIE["hidden_elements"] ?>'; //Preload + and - images img_plus = new Image(); img_plus.src = "plus.gif"; img_minus = new Image(); img_minus.src = "minus.gif"; var RecaptchaOptions = { theme : '<?=$recaptcha_theme?>' }; </script> <style> a.menulink { display: block; width: 100%; } a.menucurrent { text-decoration: none; font-weight: bold; } .recaptchatable input { background-color: white; } </style> </head> <body> <a name="top"></a> <table cellpadding="3" cellspacing="2" border="1" width="100%"> <tr> <td class="row5" colspan="2" width="100%" align="center"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td height="55" align="left" valign="middle"><a target="_blank" href="http://ac.turbine.com"><?=png_img("aclogo.png", "Asheron's Call Homepage")?></a></td> <td width="100%" align="middle" valign="middle"><a href="index.php" style="border:none;"><?=png_img("plugins_banner.png", "Digero's Decal Plugins")?></a></td> <td align="middle" valign="middle" nowrap> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10605760" class="genmed" style="color:white; text-decoration:none;" onMouseOver="this.style.color='<?=$style_arr['a:hover']?>';" onMouseOut="this.style.color='white';"> <i>PayPal</i><br>Donations<br>Appreciated! </a> </td> </tr> </table> </td> </tr> <tr> <!-- Left side menu --> <td width="200" class="row5" valign="top"> <table width="100%" cellpadding="2" cellspacing="2"> <tr> <td width="170" nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Welcome!</b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <?= make_headerlink_tr('Plugins Home', 'index') ?> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Plugins</b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <?= make_headerlink_tr('Babel Fish', 'babel_fish', 'png', UPDATED) ?> <?= make_headerlink_tr('GoArrow', 'goarrow', 'png', UPDATED) ?> <?= make_headerlink_tr('LogWiz', 'logwiz', 'png', UPDATED) ?> <?= make_headerlink_tr('Media Control', 'media_control', 'gif', UPDATED) ?> <?php if (strpos($_SERVER['SCRIPT_NAME'],"quest_timer.php") === false): ?> <tr> <td <?=hglt('quest_timer','icon')?> style="vertical-align:top;"><?=icon('quest_timer', 'png')?></td> <td width="100%" <?=hglt('quest_timer','text')?> nowrap> <a href='quest_timer.php' class='genmed menulink'>Quest Timer</a> <div class="gensmall"> <a href="quest_timer.php?mode=viewtimers" class="gensmall">Timers</a> | <a href="quest_timer.php?mode=viewquests" class="gensmall">Quests</a> </div> </td> </tr> <?php else: ?> <?= make_headerlink_tr_ex('Quest Timer', 'quest_timer', 'png', !($_REQUEST['mode'] == 'viewtimers' || $_REQUEST['mode'] == 'viewquests' || $_REQUEST['mode'] == 'devinfo')) ?> <?= make_quest_timer_tr('View Timers', 'viewtimers') ?> <?= make_quest_timer_tr('View/Add Quests', 'viewquests') ?> <?= make_quest_timer_tr('Dev Info', 'devinfo') ?> <?php endif; ?> <?= make_headerlink_tr('Spellbar Saver', 'spellbarsaver', 'png', UPDATED) ?> <?= make_headerlink_tr('SSSort', 'sssort', 'png', UPDATED) ?> <?= make_headerlink_tr('Target Info', 'target_info', 'gif', UPDATED) ?> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Requirements <?= png_img('out_of_site.png', 'Leaving this site', '0', 'width="17" height="12"') ?></b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <?php if (!(isset($requirements['decal']) && $requirements['decal'] === false)) echo make_external_headerlink_tr('Decal 3.0', 'decal', 'http://decal.acdev.org/'); if($requirements['xml4'] || !isset($requirements)) echo make_external_headerlink_tr('MSXML 4.0', 'xml', 'http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42'); if($requirements['.net'] || $requirements['net'] || !isset($requirements)) echo make_external_headerlink_tr('.NET Framework 2.0', 'net', 'http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5', false, "png"); if (!(isset($requirements['msi']) && $requirements['msi'] === false)) echo make_external_headerlink_tr('MS Installer 3.1', 'msi', 'http://www.microsoft.com/downloads/details.aspx?FamilyID=889482fc-5f56-4a38-b838-de776fd4138c'); ?> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td width="165" nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Resources</b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <?= make_headerlink_tr('Download Stats', 'dl_stats') ?> <?= make_headerlink_tr('Developer Links', 'devlinks') ?> <?= make_headerlink_tr('AC Icon Browser', 'icon_browser', 'png') ?> <?= make_headerlink_tr('View Code Generator', 'view_gen') ?> <?php /*= make_external_headerlink_tr('ACHeaven', 'acheaven', 'http://acheaven.buwahaha.com/', true) */ ?> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Contact Me</b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <tr> <td <?= hglt('email', 'icon') ?>><?= icon('email', 'gif') ?></td> <td width="100%" <?= hglt('email', 'text') ?> nowrap> <a href="<?=$mailhide_url?>" class="genmed menulink" onclick="window.open('<?=$mailhide_url?>', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Email</a> </td> </tr> <?/*= make_external_headerlink_tr('AC Utilities Forum', 'forum', 'http://vnboards.ign.com/ac_utilities/b5432/', true) */?> <?/*= make_external_headerlink_tr('PM on the Vault', 'pm', 'http://vnboards.ign.com/pm_send.asp?usr=729875', true) */?> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>PayPal</b></span> </td> </tr> <tr> <td class="row1" align="center" nowrap> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10605760"> <img src="icons/paypal.gif" width="62" height="31" style="border: none;" alt="Make payments with PayPal - it's fast, free and secure!" title="Make payments with PayPal - it's fast, free and secure!" /> </a> <br> <span class="genmed">Donations Appreciated =)</span> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"> <b>Choose a Color!</b></span> </td> </tr> <tr> <td class="row1" nowrap><table width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="center"><span class="genmed" style="white-space:normal">Which color would you like the site to be?</span><br> <form action="<?=$_SERVER['SCRIPT_NAME']?>" method="get" name="clrform"> <?php if(isset($_GET['mode'])): ?><input type="hidden" name="mode" value="<?= $_GET['mode'] ?>"><?php endif; ?> <?php if(isset($_GET['action'])): ?><input type="hidden" name="action" value="<?= $_GET['action'] ?>"><?php endif; ?> <select name="style" class="liteoption" onChange="setStyleSheet(this.value);"> <?php foreach($styles as $style): ?> <option value="<?=$style?>" <?php if($style_name == $style): ?> selected="selected"<?php endif; ?>><?=$style?></option> <? endforeach; ?> </select> </form> </table> </td> </tr> <tr> <td height="10"></td> </tr> <tr> <td nowrap class="catHead" style="padding-left:5px;"> <span class="genmed"><b>Retired Plugins</b></span> </td> </tr> <tr> <td class="row1" nowrap> <table width="100%" cellpadding="4" cellspacing="0"> <?= make_headerlink_tr('AllegChat', 'allegchat', 'gif', RETIRED) ?> <?= make_headerlink_tr('Greeter', 'greeter', 'gif', RETIRED) ?> <?= make_headerlink_tr('Jer\'s Plugins Mirror', 'jer_mirror', 'gif', RETIRED) ?> <?= make_headerlink_tr('Scroll Manager', 'scroll_manager', 'gif', RETIRED) ?> </table> </td> </tr> <tr> <td height="10"></td> </tr> </table> </td> <td class="row5" width="100%" valign="top"> <!-- Begin Main Page -->
|