Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/admin_options.tpl
<?PHP

$scripturl = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$scripturl = preg_replace('|/admin/admin.php.*|', '', $scripturl);

$defaults = array(
                   'DOCUMENT_ROOT' => $_SERVER['DOCUMENT_ROOT'],
                   'FORWARD_URL'   => "$scripturl/index.php",
                   'IN_URL'        => "$scripturl/in.php",
                   'OUT_URL'       => "$scripturl/out.php",
			'SITES_TO_DISPLAY' => 20,
                   'MINIMUM_HITS'  => 1,
                   'MINIMUM_SITES' => 10,
                   'PROD_BONUS'    => 0,
                   'MAX_TITLE'     => 60,
                   'DECIMALS'      => 2,
                   'THOUSANDS_SEP' => ',',
                   'DECIMAL_SEP'   => '.',
                   'DECIMALS'      => 2,
                   'RERANK'        => 86400,
                   'RESET'         => 604800,
                   'NEW_SITE'      => 604800,
                   'IP_EXPIRE'     => 86400,
                   'COOKIE_EXPIRE' => 86400,
                   'GATEWAY_EXPIRE' => 60,
                   'IP_EXPIRE_R'    => 604800,
                   'COOKIE_EXPIRE_R' => 604800
                 );

foreach( $defaults as $key => $value )
{
    if( !isset($GLOBALS[$key]) )
    {
        $GLOBALS[$key] = $value;
    }
}


?>
<script type="text/javascript">
function checkForm(form)
{
    var values = new Array(
            				'Sites To Display',
                            'Minimum Hits',
                            'Minimum Sites',
                            'Productivity Bonus',
                            'Site Title Maximum Length',
                            'Decimal Places',
                            'Rerank Interval',
                            'Reset Interval'
                          );

    var keys   = new Array(
            				'SITES_TO_DISPLAY',
                           'MINIMUM_HITS',
                           'MINIMUM_SITES',
                           'PROD_BONUS',
                           'MAX_TITLE',
                           'DECIMALS',
                           'RERANK',
                           'RESET'
                          );


    for( i = 0; i < keys.length; i++ )
    {
        if( !form.elements[keys[i]].value )
        {
            alert('The ' + values[i] + ' field must be filled in');
            return false;
        }
    }
}


function checkBoxes()
{
    var form = document.form;

    var check  = new Array(<?PHP  echo "'" . join("', '", preg_grep('/^O_/', array_keys($GLOBALS))) . "'"; ?>);

    if( check[0] )
    {
        for( i = 0; i < check.length; i++ )
        {
            form.elements[check[i]].checked = true;
        }
    }

    //window.parent.menu.location = 'menu.php?' +  Math.random();
	//window.location = 'menu.php?' +  Math.random();
}



function expand(id)
{
    var item  = document.getElementById(id);

    if( item.style.visibility == 'hidden' )
    {
        item.style.position   = 'relative';
        item.style.visibility = 'visible';
        
    }
    else
    {
        item.style.visibility = 'hidden';
        item.style.position   = 'absolute';
    }

    return false;
}



function fixNumber(item)
{
    item.value = item.value.replace(/[^0-9\-.]/gi, '');    
}



function removeTrailingSlash(item)
{
    item.value = item.value.replace(/\/+$/, '');
}


function fixPerLine(item)
{
    if( item.value.match(/\r\n/) )
    {
        var strings = item.value.split("\r\n");

        item.value = '';

        for( var i = 0; i < strings.length; i++ )
        {
            if( strings[i] != '' )
            {
                strings[i] = strings[i].replace(/^\s+|\s+$/, '');

                item.value += strings[i] + "\r\n";
            }
        }
        
        item.value = item.value.replace(/(\r\n)+$/g, '');
    }
    else if( item.value.match(/[^\r]\n/) )
    {
        item.value = item.value.replace(/\n\n+/g, "\n");

        RegExp.multiline = true;
        item.value = item.value.replace(/^\s+|\s+$/g, '');
    }
}

<?PHP
if( $error_message )
{
?>

alert("<?PHP echo $error_message; ?>");

<?PHP
}
?>
window.onload = function()
{
	checkBoxes();
}

</script>
<?PHP
if( isset($message) )
{
?>
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="message">
<?PHP echo $message; ?>
</div>
<br />
<?PHP
}
?>


<!-- SECTION SEP -->

<h2>Topsites Settings</h2>

<br>

Topsites Options (<span style=color:red><b>*</b></span> = required field)

<br>
<br>


<form name="form" action="admin.php" target="_top" method="post" onSubmit="return checkForm(this)">

<table border=0 cellpadding=10 cellspacing=0>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Sites to Display:</b>
</td>
<td>
<input type="text" name="SITES_TO_DISPLAY" value="<?PHP echo $GLOBALS['SITES_TO_DISPLAY']; ?>" onChange="fixNumber(this)" size="15">
<a href="" onClick="return expand('Sites_To_Display_Help');">[?]</a><br>
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Sites_To_Display_Help">
The number of sites displayed in list.</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Minimum Hits:</b> </td>
<td>
<input type="text" name="MINIMUM_HITS" value="<?PHP echo $GLOBALS['MINIMUM_HITS']; ?>" onChange="fixNumber(this)" size="15"> 
<a href="" onClick="return expand('Minimum_Hits_Help');">[?]</a><br>
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Minimum_Hits_Help">
The minimum number of hits needed to get listed.<br />
<b>Example:</b> 1</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Minimum Sites:</b> </td>
<td>
<input type="text" name="MINIMUM_SITES" value="<?PHP echo $GLOBALS['MINIMUM_SITES']; ?>" onChange="fixNumber(this)" size="15"> 
<a href="" onClick="return expand('Minimum_Sites_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Minimum_Sites_Help">
The minimum number of sites that must be shown on the ranking pages.
If there are fewer than this number of sites eligible for display, all
sites will be shown even if they have not sent the minimum required
number of hits.<br />
<b>Example:</b> 10
</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Productivity Bonus:</b> </td>
<td>
<input type="text" name="PROD_BONUS" value="<?PHP echo $GLOBALS['PROD_BONUS']; ?>" onChange="fixNumber(this)" size="15"> 
<a href="" onClick="return expand('Prod_Bonus_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Prod_Bonus_Help">
The bonus given to sites when surfers they refer click on links in your ranking list.<br />
<b>Example:</b> 0.5</div>
</td>
</tr>

<tr>
<td width=200 align=right>
<!-- <b>New Site Maximum Age:</b><br /> -->
<input type="hidden" name="NEW_SITE" value="<?PHP echo $GLOBALS['NEW_SITE']; ?>" onChange="fixNumber(this)" size="20">
<!-- <a href="" onClick="return expand('New_Site_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="New_Site_Help">
The length of time, in seconds, from the time that an account is created until<br />
it is no longer considered a new site.<br />
<b>Example:</b> 604800<br />
</div>

<br /> -->

<b><span style="color:red">*</span> Site Title Maximum Length:</b> </td>
<td>
<input type="text" name="MAX_TITLE" value="<?PHP echo $GLOBALS['MAX_TITLE']; ?>" onChange="fixNumber(this)" size="15"> 
<a href="" onClick="return expand('Max_Title_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Max_Title_Help">
The maximum number of characters allowed for member site titles.<br />
<b>Example:</b> 60</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b>Title Capitalization:</b> </td>
<td>
<select name="TEXT_CASE">
<?PHP

$conversions = array('NoChange' => 'No Change',
                     'FirstUpper' => 'First letter upper case',
                     'WordsUpper' => 'First letter of each word upper case',
                     'AllUpper' => 'All letters upper case',
                     'AllLower' => 'All letters lower case');

foreach($conversions as $key => $value)
{
    echo "<option value=\"$key\"" .
         ($GLOBALS['TEXT_CASE'] == $key ? ' selected' : '') .
         ">$value</option>\n";
}

?>

</select>
<a href="" onClick="return expand('Text_Case_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Text_Case_Help">
This option will determine how the site title is displayed.
</div>
</td>
</tr>
<tr valign=top>
<td width=200 align=right>
<?php
	/*
<b><span style="color:red">*</span> Decimal Places:</b> </td>
<td>
	*/
?>
<input type="hidden" name="DECIMALS" value="<?PHP echo $GLOBALS['DECIMALS']; ?>" onChange="fixNumber(this)" size="15"> 
<?php
	/*
<a href="" onClick="return expand('Decimals_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Decimals_Help">
The number of digits to display after the decimal point in a number.
This will be used when displaying the averaged values, such as Average Hits In Per Day.<br />
<b>Example:</b> 2</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b>Thousands Separator:</b> </td>
<td>
	*/
?>
<input type="hidden" name="THOUSANDS_SEP" value="<?PHP echo $GLOBALS['THOUSANDS_SEP']; ?>" size="15"> 
<?php
	/*
<a href="" onClick="return expand('Thousands_Sep_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Thousands_Sep_Help">
 The character you want to use to separate each thousand in a number.<br />
<b>Example:</b> ,</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b>Decimal Separator:</b> </td>
<td>
	*/
?>
<input type="hidden" name="DECIMAL_SEP" value="<?PHP echo $GLOBALS['DECIMAL_SEP']; ?>" size="15"> 
<?php
	/*
<a href="" onClick="return expand('Decimal_Sep_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Decimal_Sep_Help">
 The character you want to use to separate the decimal portion of a number.<br />
<b>Example:</b> .</div>
	*/
?>
</td>
</tr>
<tr valign=top>
<td width=200 align=right>
<b>Rank Sites By:</b> </td>
<td>
<select name="RANK_BY">
<?PHP
$not_allowed = array('Overall Rank', 'Signup Date', 'Username', 'Inactive', 'Number of Ratings');

foreach($GLOBALS['SORTINGS'] as $name => $sql)
{
    if( in_array($name, $not_allowed) === FALSE )
    {
        echo "<option value=\"$name\"" .
             ($GLOBALS['RANK_BY'] == $name ? ' selected' : '') .
             ">$name</option>\n";
    }
}
?>
</select>
<a href="" onClick="return expand('Rank_By_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Rank_By_Help">
This determines how the sites are sorted when they are displayed on the ranking pages.
</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Rerank Interval:</b> </td>
<td>
<input type="text" name="RERANK" value="<?PHP echo $GLOBALS['RERANK']; ?>" size="15" onChange="fixNumber(this)">
<a href="" onClick="return expand('Rerank_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Rerank_Help">
The minimum number of seconds between member account reranks.
A rerank is when your member accounts will be re-sorted based
on the ranking option you have selected.<br />
<b>Example:</b> 86400</div>
</td>
</tr>

<tr valign=top>
<td width=200 align=right>
<b><span style="color:red">*</span> Reset Interval:</b> </td>
<td>
<input type="text" name="RESET" value="<?PHP echo $GLOBALS['RESET']; ?>" size="15" onChange="fixNumber(this)">
<a href="" onClick="return expand('Reset_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Reset_Help">
The minimum number of seconds between hit count resets.
A reset is when the in and out hits are set back to zero for all accounts.<br />
<b>Example:</b> 604800</div>
</td>
</tr>

</table>

<br>
<br>

<!-- Document Root -->
<!-- <b>Document Root:</b><br /> -->
<input type="hidden" name="DOCUMENT_ROOT" value="<?PHP echo $GLOBALS['DOCUMENT_ROOT']; ?>" onChange="removeTrailingSlash(this)" size="70"> 
<!-- <a href="" onClick="return expand('Doc_Root_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Doc_Root_Help">
The base directory on your server where you place your HTML files.<br />
<b>Example:</b> /home/username/public_html</div>

<br /> -->

<!-- Forward URL -->
<!-- <b>Forward URL:</b><br /> -->
<input type="hidden" name="FORWARD_URL" value="<?PHP echo $GLOBALS['FORWARD_URL']; ?>" size="70"> 
<!-- <a href="" onClick="return expand('Forward_URL_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Forward_URL_Help">
The URL where surfers should be sent after clicking through the in.php script.<br />
<b>Example:</b> http://www.yoursite.com/</div> -->

<!-- <br /> -->

<!-- In URL -->
<!-- <b>In URL:</b><br /> -->
<input type="hidden" name="IN_URL" value="<?PHP echo $GLOBALS['IN_URL']; ?>" size="70"> 
<!-- <a href="" onClick="return expand('In_URL_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="In_URL_Help">
The full URL and filename of the incoming hit tracking script.<br />
<b>Example:</b> http://www.domain.com/script/in.php</div> -->

<!-- <br /> -->

<!-- Out URL -->
<!-- <b>Out URL:</b><br /> -->
<input type="hidden" name="OUT_URL" value="<?PHP echo $GLOBALS['OUT_URL']; ?>" size="70"> 
<!-- <a href="" onClick="return expand('Out_URL_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Out_URL_Help"> 
The full URL and filename of the outgoing hit tracking script.<br />
<b>Example:</b> http://www.domain.com/script/out.php</div> -->

</div>

<!-- <br /> -->

<!-- SECTION SEP -->

<!-- <div> -->

<!-- E-mail Address -->
<!-- <b>Your E-mail Address:</b><br /> -->
<input type="hidden" name="ADMIN_EMAIL" value="<?PHP echo $GLOBALS['ADMIN_EMAIL']; ?>" size="40"> 
<!-- <a href="" onClick="return expand('Admin_Email_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Admin_Email_Help">
This e-mail address that all administrative messages should be sent to.<br />
This will also be the e-mail address that appears in the From field of all e-mails.<br />
<b>Example:</b> hide@address.com</div> -->

<!-- <br /> -->

<input type="checkbox" name="O_CONFIRM" value="1"> All new accounts must be confirmed through the user's e-mail address?
<a href="" onClick="return expand('Confirm_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Confirm_Help">
If this box is checked, DDL CMS will send a confirmation e-mail to each person who creates an account.
The e-mail message will contain a link that the user must visit to confirm their account before it will be
added to the database and eligible for ranking.
</div>

<input type="checkbox" name="O_EMAIL_USER" value="1" checked> Send e-mail to person signing up when their account is created?
<a href="" onClick="return expand('Email_User_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Email_User_Help">
If this box is checked, DDL CMS will send an e-mail to each person who creates an account.
This message will contain information about their account, how to begin sending hits, and how
to maintain their account through the account maintenance interface.
</div>

<input type="checkbox" name="O_EMAIL_ADD" value="1" checked> E-mail administrator when new account is added?
<a href="" onClick="return expand('Added_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Added_Help">
If this box is checked, DDL CMS will send an e-mail to the administrator each time an account is created.
</div>

<input type="checkbox" name="O_EMAIL_EDIT" value="1"> E-mail administrator when an account is edited?
<a href="" onClick="return expand('Admin_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Admin_Help">
If this box is checked, DDL CMS will send an e-mail to the administrator each time an account is edited.
</div>

<br />

<input type="checkbox" name="O_REVIEW_NEW" value="1"> Review new accounts before listing?
<a href="" onClick="return expand('Review_New_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Review_New_Help">
If this box is checked, you will be required to review
new accounts before they can be listed in the rankings.
</div>

<input type="checkbox" name="O_REVIEW_EDIT" value="1"> Review all member account editing before listing?
<a href="" onClick="return expand('Review_Edit_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Review_Edit_Help">
If this box is checked, you will be required to review all account
editing before the changes will be listed in the rankings.
</div>

<input type="checkbox" name="O_CHECK_DUPS" value="1"> Check for duplicate accounts during signup?
<a href="" onClick="return expand('Check_Dups_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Check_Dups_Help">
If this box is checked, DDL CMS will check to make sure an existing
account does not have the same information as an account being created.
</div>

<input type="checkbox" name="O_CHECK_URLS" value="1"> Verify URLs during account submission?
<a href="" onClick="return expand('Check_URLs_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Check_URLs_Help">
If this box is checked, DDL CMS will check to make sure that
the URLs provided during signup are working.
</div>

<br />

<!-- <b>Custom Sorting String:</b><br /> -->
<input type="hidden" name="CUSTOM_SORT" value="<?PHP echo $GLOBALS['CUSTOM_SORT']; ?>" size="40">
<!-- <a href="" onClick="return expand('Custom_Sort_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Custom_Sort_Help">
A custom sorting string used to sub-sort the member accounts during a rerank.<br />
The software manual has additional information on this field.<br />
<b>Example:</b> Total_In DESC</div>

<br /> -->

<!-- <input type="checkbox" name="O_CRON" value="1"> <b>Check this box if you are using cron for reranks and resets</b>
<a href="" onClick="return expand('Cron_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Cron_Help">
If this box is checked, DDL CMS will assume that you have setup<br />
cron for reranks and resets and will disable the automatic updates<br />
that are done by the in.php script.
</div>-->

<br /> 


<b>Click Tracking Cheat Protection Options</b><br /><br />

</div>
<div>
<input type="checkbox" name="O_CHEAT_LOG" value="1" checked> Keep a log of suspected cheating attempts?
<a href="" onClick="return expand('Cheat_Log_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Cheat_Log_Help">
If this box is checked, DDL CMS will keep a log of hits it suspects
may be cheating attempts.  Note that this option may use significant disk
space so be sure to have at least 20 megabytes of free space available.
</div>

<input type="checkbox" name="O_PROXY" value="1" checked> Do not count hits coming from proxy servers?
<a href="" onClick="return expand('Proxy_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Proxy_Help">
If this box is checked, DDL CMS will try to determine if the person
clicking through the in.php script is using a proxy.  If so, the hit will
not be credited to the account.
</div>

<input type="checkbox" name="O_BANNED_IPS" value="1" checked> Do not count hits coming from banned IP addresses?
<a href="" onClick="return expand('Banned_IPs_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Banned_IPs_Help">
If this box is checked, DDL CMS will check to see if the individual
coming to your site is on your banned IP list.
</div>

<input type="checkbox" name="O_TALLY" value="1" checked> Keep a tally of cheating attempts for each account?
<a href="" onClick="return expand('Tally_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Tally_Help">
If this box is checked, DDL CMS will keep track of how many cheating
attempts it has encountered for each acccount.
</div>

<input type="checkbox" name="O_IPS" value="1"> Track incoming clicks using IP addresses?
<a href="" onClick="return expand('IPs_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="IPs_Help">
If this box is checked, DDL CMS will keep a log of IP addresses for each
account so that only one hit is counted for each IP address that comes through
the in.php hit tracking script per account.
</div>

<br />

<b>IP Address Expiration:</b> &nbsp;
<input type="text" name="IP_EXPIRE" value="<?PHP echo $GLOBALS['IP_EXPIRE']; ?>" size="15" onChange="fixNumber(this)">
<a href="" onClick="return expand('IP_Expire_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="IP_Expire_Help">
After this amount of seconds the IP logs kept for each account will be cleared
and surfers who have already registered a hit for an account will be able to register
another hit for the same account.<br />
<b>Example:</b> 86400</div>

<br />

<input type="checkbox" name="O_COOKIES" value="1"> Track incoming clicks using cookies?
<a href="" onClick="return expand('Cookies_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Cookies_Help">
If this box is checked, DDL CMS will set a cookie in each users browser
who comes to your site through the in.php script so that only one hit is counted
for surfer per account.
</div>

<br />

<input type="checkbox" name="O_REQ_COOKIES" value="1"> Only count clicks from cookie enabled browsers?
<a href="" onClick="return expand('Req_Cookies_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Req_Cookies_Help">
If this box is checked, DDL CMS will set a cookie in the surfer's browser
on the gateway page and then check to make sure that the cookie was accepted
when the surfer clicks through the gateway page.  Only clicks from browsers
that accepted the cookie will be counted.  The gateway page feature must be
enabled for this option to work.
</div>

<br />

<b>Cookie Expiration:</b> &nbsp;
<input type="text" name="COOKIE_EXPIRE" value="<?PHP echo $GLOBALS['COOKIE_EXPIRE']; ?>" size="15" onChange="fixNumber(this)">
<a href="" onClick="return expand('Cookie_Expire_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Cookie_Expire_Help">
After this amount of seconds the cookie set by DDL CMS will expire
and the surfer will be allowed to register a hit for an account that they
have already registered a hit for.<br />
<b>Example:</b> 86400</div>

<br />

<input type="checkbox" name="O_GATEWAY" value="1" checked> Enable the gateway page for incoming clicks?
<a href="" onClick="return expand('Gateway_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Gateway_Help">
If this box is checked, DDL CMS will display an intermediate page to
surfers before they are sent to your main website.  This gateway page will
require that the surfer click on a link in order for their hit to be counted.<br />
<a href="<?PHP echo $site_url; ?>/admin/tsadmin/admin.php?T=in_gateway">Edit gateway page</a>.
</div>

<br />

<b>Gateway Expiration:</b> &nbsp;
<input type="text" name="GATEWAY_EXPIRE" value="<?PHP echo $GLOBALS['GATEWAY_EXPIRE']; ?>" size="15" onChange="fixNumber(this)">
<a href="" onClick="return expand('Gateway_Expire_Help');">[?]</a><br />
<div style="visibility:hidden;position:absolute;font-size:10px;padding:10px" id="Gateway_Expire_Help">
After this amount of seconds the gateway that the surfer is viewing will
no longer be valid.  Any clicks on the gateway page link after it has
expired will not be counted.<br />
<b>Example:</b> 60</div>

</div>

<br />
<br />

<!-- SECTION SEP -->
<!-- <div>
<b>Rating Cheat Protection Options</b><br /><br /> -->

<input type="hidden" name="O_CHEAT_LOG_R" value="1"> <!-- <b>Keep a log of suspected cheating attempts?</b> -->
<!-- <a href="" onClick="return expand('Cheat_Log_R_Help');">[?]</a><br />
<div id="Cheat_Log_R_Help">
If this box is checked, DDL CMS will keep a log of ratings it suspects<br />
may be cheating attempts.  Note that this option may use significant disk<br />
space so be sure to have at least 20 megabytes of free space available.
</div>
 -->
<input type="hidden" name="O_PROXY_R" value="1"> <!-- <b>Do not count ratings coming from proxy servers?</b> -->
<!-- <a href="" onClick="return expand('Proxy_R_Help');">[?]</a><br />
<div id="Proxy_R_Help">
If this box is checked, DDL CMS will try to determine if the person<br />
rating the site is using a proxy.  If so, the hit will not be credited<br />
to the account.
</div> -->

<input type="hidden" name="O_BANNED_IPS_R" value="1"> <!-- <b>Do not count ratings coming from banned IP addresses?</b> -->
<!-- <a href="" onClick="return expand('Banned_IPs_R_Help');">[?]</a><br />
<div id="Banned_IPs_R_Help">
If this box is checked, DDL CMS will check to see if the individual<br />
rating one of your sites is on your banned IP list.
</div> -->

<input type="hidden" name="O_TALLY_R" value="1"> <!-- <b>Keep a tally of cheating attempts for each account?</b>
<a href="" onClick="return expand('Tally_R_Help');">[?]</a><br />
<div id="Tally_R_Help">
If this box is checked, DDL CMS will keep track of how many cheating<br />
attempts it has encountered for each acccount.
</div> -->

<input type="hidden" name="O_IPS_R" value="1"> <!-- <b>Track ratings using IP addresses?</b>
<a href="" onClick="return expand('IPs_R_Help');">[?]</a><br />
<div id="IPs_R_Help">
If this box is checked, DDL CMS will keep a log of IP addresses for each<br />
account so that only one rating is recorded for each IP address.
</div>

<br /> -->

<!-- <b>IP Address Expiration:</b><br /> -->
<input type="hidden" name="IP_EXPIRE_R" value="<?PHP echo $GLOBALS['IP_EXPIRE_R']; ?>" size="15" onChange="fixNumber(this)">
<!-- <a href="" onClick="return expand('IP_Expire_R_Help');">[?]</a><br />
<div id="IP_Expire_R_Help">
After this amount of seconds the IP logs kept for each account will be cleared<br />
and surfers who have already rated an account will be able to rate the same<br />
account again.<br />
<b>Example:</b> 604800</div>

<br /> -->

<input type="hidden" name="O_COOKIES_R" value="1"> <!-- <b>Track ratings using cookies?</b> -->
<!-- <a href="" onClick="return expand('Cookies_R_Help');">[?]</a><br />
<div id="Cookies_R_Help">
If this box is checked, DDL CMS will set a cookie in each users browser<br />
who rates one of your sites so that they can only give one rating per account.
</div>

<br /> -->


<input type="hidden" name="O_REQ_COOKIES_R" value="1"> 
<!-- <b>Only count ratings from cookie enabled browsers?</b>
<a href="" onClick="return expand('Req_Cookies_R_Help');">[?]</a><br />
<div id="Req_Cookies_R_Help">
If this box is checked, DDL CMS will set a cookie in the surfer's browser<br />
on the rating page and then check to make sure that the cookie was accepted<br />
when the surfer presses the button to rate a site.  Only ratings from browsers<br />
that accepted the cookie will be counted.</div>

<br /> -->

<!-- <b>Cookie Expiration:</b><br /> -->
<input type="hidden" name="COOKIE_EXPIRE_R" value="<?PHP echo $GLOBALS['COOKIE_EXPIRE_R']; ?>" size="15" onChange="fixNumber(this)">
<!-- <a href="" onClick="return expand('Cookie_Expire_R_Help');">[?]</a><br />
<div id="Cookie_Expire_R_Help">
After this amount of seconds the cookie set by DDL CMS will expire<br />
and the surfer will be allowed to rate an account that they have already rated.<br />
<b>Example:</b> 604800</div> -->

</div>

<br />
<br />

<input type="hidden" name="SCRIPT_URL" value="<?PHP echo $scripturl; ?>">


<div>
<input type="reset"> &nbsp;
<input type="hidden" name="Run" value="SaveOptions">
<input type="submit" value="Save Options">
</div>

</form>

<noscript>
</div>
</noscript>

<br />
<br />
Return current item: DDL CMS