-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9ae5949
Showing
40 changed files
with
5,193 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function daebug(obj) { | ||
for (i in obj) { | ||
var daebug_obj=document.createElement('div'); | ||
document.body.appendChild(daebug_obj); | ||
var v=eval("obj."+i); | ||
daebug_obj.innerText=i+" "+v; | ||
} | ||
} | ||
|
||
var trans=new Image(); | ||
|
||
function correctPNGforImgMap(img) { | ||
if (!trans.src) trans.src="empty.gif"; | ||
img.style.width=img.width+"px"; | ||
img.style.height=img.height+"px"; | ||
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"', sizingMethod='scale');"; | ||
img.src=trans.src; | ||
} | ||
|
||
function correctPNGforImg(img) { | ||
img.outerHTML="<span style=\"width: "+img.width+"px; height: "+img.height+"px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"', sizingMethod='scale'); float: "+((img.align) ? img.align : img.style.styleFloat)+";\"></span>"; | ||
} | ||
|
||
function correctPNG() { | ||
var r = new RegExp(".png$", "i"); | ||
for(var i=0; i<document.images.length; i++) { | ||
if ((img=document.images[i]).src.match(r)) { | ||
(img.useMap || img.isMap) ? correctPNGforImgMap(img) : correctPNGforImg(img); | ||
i--; | ||
} | ||
} | ||
} | ||
|
||
window.attachEvent("onload", correctPNG); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,216 @@ | ||
<div id="function_header"> | ||
<a href="<?php echo basename($_SERVER['PHP_SELF']) ?>?score_lib=main">Main</a> | ||
|
||
<?php | ||
if ( $_SESSION['score_user']->data['privileges'] > 50 ) | ||
{ | ||
echo " | ||
> <a href=\"".basename($_SERVER['PHP_SELF'])."?score_lib=admin\">Admin</a>"; | ||
} | ||
?> | ||
|
||
<div style="background-color: black; width: 4px; height: 4px; display: inline; font-size:4px; font-family: fixed; vertical-align: middle; margin-left:4px; margin-right:4px">O</div> | ||
<font style="color: black">Functions: </font> | ||
<a href="<?php echo basename($_SERVER['PHP_SELF']) ?>?score_lib=settings">Settings</a> | ||
| | ||
<a href="<?php echo basename($_SERVER['PHP_SELF']) ?>?score_call=logout">Logout <?php echo $_SESSION['score_user']->data['login'] ?></a> | ||
</div> | ||
|
||
<?php scoreErrorsOut(); ?> | ||
|
||
<table class="main_table"> | ||
<td class="main_left_column background_image"> | ||
|
||
<div class="column_header background_color1">Region Settings</div> | ||
|
||
<div class="column_content"> | ||
|
||
|
||
<?php html_import_regions() ?> | ||
|
||
|
||
<?php html_get_admin_region_list(); ?> | ||
</div> | ||
|
||
|
||
|
||
</td> | ||
<td class="main_right_column"> | ||
|
||
|
||
<div class="column_header background_color2">General SCORE Options/Settings:</div> | ||
<form action="<?php echo basename($_SERVER['PHP_SELF']); ?>" method="post"> | ||
|
||
<div class="column_content"> | ||
|
||
<?php html_show_perms_state() ?> | ||
|
||
<hr> | ||
<span class="title_text">SCORE Variables</span> | ||
<p> | ||
<div class="ldiv"> | ||
Public Registration | ||
</div> | ||
<div class="rdiv"> | ||
<input type="hidden" name="score_option[PUBLIC_REG]" value="Off"> | ||
<input type="checkbox" name="score_option[PUBLIC_REG]"<?php isChecked($GLOBALS['SCORE']['PUBLIC_REG']) ?>> | ||
</div> | ||
|
||
|
||
<div class="ldiv"> | ||
Admin Name | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[ADMIN_NAME]" value="<?php echo $GLOBALS['SCORE']['ADMIN_NAME'] ?>" size="32"> | ||
</div> | ||
|
||
|
||
<div class="ldiv"> | ||
Admin Email | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[ADMIN_EMAIL]" value="<?php echo $GLOBALS['SCORE']['ADMIN_EMAIL'] ?>" size="32"> | ||
</div> | ||
|
||
|
||
<hr> | ||
<span class="title_text">SMTP Settings</span> (Optional) | ||
<p> | ||
|
||
SCORE will use php's built in mail() | ||
function which uses sendmail on linux, | ||
and an external, non authenticating SMTP | ||
server on windows (specified in php.ini). | ||
<p> | ||
If you need authenitcating SMTP or just wish | ||
to use an external SMTP, specify the server and | ||
optionally any login/pass needed to authenticate. | ||
Leave blank if no authentication is not needed. | ||
|
||
|
||
<div class="ldiv"> | ||
External SMTP Host | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SMTP_HOST]" value="<?php echo $GLOBALS['SCORE']['SMTP_HOST'] ?>" size="32"> | ||
</div> | ||
|
||
|
||
<div class="ldiv"> | ||
SMTP Login | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SMTP_USER]" value="<?php echo $GLOBALS['SCORE']['SMTP_USER'] ?>" size="32"> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
SMTP Password | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SMTP_PASS]" value="<?php echo $GLOBALS['SCORE']['SMTP_PASS'] ?>" size="32"> | ||
</div> | ||
|
||
<hr> | ||
|
||
<span class="title_text">Expiration of Stale Accounts</span> | ||
<p> | ||
|
||
<div class="ldiv"> | ||
Warn on accounts Idle for X days old | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[idle_account_limit_warn]" value="<?php echo $GLOBALS['SCORE']['idle_account_limit_warn'] ?>" size="4"> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
Remove account X days later after warn | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[idle_account_limit]" value="<?php echo $GLOBALS['SCORE']['idle_account_limit'] ?>" size="4"> | ||
</div> | ||
|
||
|
||
<hr> | ||
|
||
<span class="title_text">Path Settings</span> | ||
<p> | ||
|
||
<font style="color: navy">Note: Changing these values once regions are in progress is a very bad idea. Existing regions should be deleted and added back.</font> | ||
<p> | ||
<div style="text-align: right"> | ||
|
||
<div class="ldiv"> | ||
Use Zip (<?php zipLibStatus() ?>) | ||
</div> | ||
<div class="rdiv"> | ||
<input type="hidden" name="score_option[USE_ZIP]" value="Off"> | ||
<input type="checkbox" name="score_option[USE_ZIP]"<?php isChecked($GLOBALS['SCORE']['USE_ZIP']) ?>> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
Images Path | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SC4IMG_PATH]" value="<?php echo $GLOBALS['SCORE']['SC4IMG_PATH'] ?>" size="32"> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
Region Path | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SC4PATH]" value="<?php echo $GLOBALS['SCORE']['SC4PATH'] ?>" size="32"> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
Region Image Width (pixels or percent) | ||
</div> | ||
<div class="rdiv"> | ||
<input type="text" name="score_option[SC4REGION_IMG_WIDTH]" value="<?php echo $GLOBALS['SCORE']['SC4REGION_IMG_WIDTH'] ?>" size="6"> | ||
</div> | ||
|
||
<hr style="clear:both;"> | ||
|
||
|
||
|
||
|
||
<span class="title_text" style="text-align:left;">Server Environment (php.ini)</span> | ||
<p> | ||
|
||
<div class="ldiv"> | ||
max_execution_time (in seconds) | ||
</div> | ||
<div class="rdiv"> | ||
<font style="color: green;"><?php echo ini_get('max_execution_time') ?> </font> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
post_max_size (10 - 20MB recommended) | ||
</div> | ||
<div class="rdiv"> | ||
<font style="color: green;"><?php echo ini_get('post_max_size') ?> </font> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
upload_max_filesize (match to post_max_size) | ||
</div> | ||
<div class="rdiv"> | ||
<font style="color: green;"><?php echo ini_get('upload_max_filesize') ?> </font> | ||
</div> | ||
|
||
<div class="ldiv"> | ||
memory_limit (post_max_size + 10%) | ||
</div> | ||
<div class="rdiv"> | ||
<font style="color: green;"><?php echo ini_get('memory_limit') ?> </font> | ||
</div> | ||
|
||
<br> | ||
<hr style="clear:both;"> | ||
|
||
<input type="submit" name="score_call" value="Update SCORE Settings"> | ||
|
||
</div> | ||
</form> | ||
|
||
</td> | ||
</table> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title>SimCity Online Region Exchange</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
<!--[if gte IE 5.5000]> | ||
<script type="text/javascript" src="daepngfix.js"></script> | ||
<![endif]--> | ||
<script src="score.js" type="text/javascript"></script> | ||
<link rel="stylesheet" href="score.css" type="text/css"> | ||
</head> | ||
<body> |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title>SimCity Online Region Exchange</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
|
||
<!--[if gte IE 5.5000]> | ||
<script type="text/javascript"> | ||
|
||
/* | ||
** Slightly modified from the usual code to handle imagemaps | ||
** | ||
*/ | ||
|
||
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. | ||
{ | ||
for(var i=0; i<document.images.length; i++) | ||
{ | ||
var img = document.images[i] | ||
var imgName = img.src.toUpperCase() | ||
if (imgName.substring(imgName.length-3, imgName.length) == "PNG") | ||
{ | ||
var imgID = (img.id) ? "id='" + img.id + "' " : "" | ||
var imgClass = (img.className) ? "class='" + img.className + "' " : "" | ||
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " | ||
var imgStyle = "display:inline-block;" + img.style.cssText | ||
var imgAttribs = img.attributes; | ||
for (var j=0; j<imgAttribs.length; j++) | ||
{ | ||
var imgAttrib = imgAttribs[j]; | ||
if (imgAttrib.nodeName == "align") | ||
{ | ||
if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle | ||
if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle | ||
break | ||
} | ||
} | ||
var strNewHTML = "<img " + imgID + imgClass + imgTitle | ||
strNewHTML += " border=\"none\" src=\"empty.gif\" usemap=\"#citymap\" style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" | ||
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" | ||
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\">" | ||
img.outerHTML = strNewHTML | ||
i = i-1 | ||
} | ||
} | ||
} | ||
window.attachEvent("onload", correctPNG); | ||
|
||
</script> | ||
<![endif]--> | ||
|
||
<style type="text/css"> | ||
body | ||
{ | ||
background-image: url('iframebackground.png') | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<?php html_regionIframe() ?> | ||
</body> | ||
</head> |
Oops, something went wrong.