Location: PHPKode > scripts > CECID: CEnsorship CIrcumvention Device > CECID-PHP/template/configtemplate.php
<?php
/************************************************************
 *                                                          *
 *  CECID - CEnsorship CIrcumvention Device                 *
 *  Configuration Template                                  *
 *                                                          *
 *  This program is free software; you can redistribute it  *
 *  and/or modify it under the terms of the GNU General     *
 *  Public License as published by the Free Software        *
 *  Foundation; either version 2 of the License, or (at     *
 *  your option) any later version.                         *
 *                                                          *
 *  This program is distributed in the hope that it will be *
 *  useful, but WITHOUT ANY WARRANTY; without even the      *
 *  implied warranty of MERCHANTABILITY or FITNESS FOR A    *
 *  PARTICULAR PURPOSE. See the GNU General Public License  *
 *  for more details.                                       *
 *                                                          *
 *  You should have received a copy of the GNU General      *
 *  Public License along with this program; if not, write   *
 *  to the Free Software Foundation, Inc., 59 Temple Place, *
 *  Suite 330, Boston, MA 02111-1307 USA                    *
 *                                                          *
 *  To contact the author, email hide@address.com      *
 *                                                          *
 ************************************************************/
require 'header.php';
?>

<p align="justify">

<?
if ($userpass) {
?>

<form action="<?=$cmyname?>?setpass=1" method="POST">

<table border="0" cellpadding="3" align="center" width="50%">
<tr><td class=blue>Username: <input type="text" name="user"></td></tr>
<tr><td class=blue>Password: <input type="password" name="pass"></td></tr>
<tr><td class=blue><input type="submit">&nbsp<input type="reset"></td></tr>

</table>
</form>

<?
} elseif ($err) {
?>

<table border="0" cellpadding="3" align="center" width="100%">
<tr><td class=blue>
&nbsp
<p align="center">
<?=$msg?>
</p>
&nbsp
</td></tr>
</table>

<?
} elseif ($help) {
?>

<table border="0" cellpadding="3" align="center" width="100%">
<tr><td class=dblue>
<p align="justify">
<?
	if ($help == 'imagesup') {
?>
<u>Image support</u><br>
Image support allows users to proxy images through the script, as well as HTML. This increases privacy,
at the expense of increased bandwidth use. It is recommended you leave this on.
<?
	} elseif ($help == 'debug') {
?>
<u>Debug</u><br>
If you are interested in helping develop the script, or you wish to submit a bug report, you should turn
this on. There are three levels of debugging: Off, On and *very* verbose. This should not be enabled in
a script deployed in a production environment. It is recommended that you leave this off.
<?
	} elseif ($help == 'version') {
?>
<u>Version</u><br>
This allows you to change the version your script reports itself as. It is definately recommended that
you <u>leave this alone</u>, as it may confuse other scripts and cause you get erranous 'A newer version
is available!' messages.
<?
	} elseif ($help == 'addword') {
?>
<u>Word addition</u><br>
An old and somewhat unnecessary feature (if anyone actually uses this, let me know, or it'll probably
get removed -ptrck). It allows you to add banned words to the script through cecid.php?addword=true. Useful
if you're unable to ssh into the webserver and you know the script is missing a word, but pointless and
probably a security threat otherwise. Only turn this on if you know you're going to use it (you can always
turn it on later anyhow).
<?
	} elseif ($help == 'respondtoping') {
?>
<u>Respond to PING</u><br>
As of version 1.0.1, scripts communicate among themselves, exchanging lists of known
scripts in order to maintain the network should cecid.sf.net/mirrors.php be shut down. The peers that a
given script knows are listed on the stats page of a script. If you do not want
to be listed by other scripts (perhaps this script is on a limited bandwidth (ie. 56k) server),
then this option allows you to 'hide' from other scripts. If this is switched off, then other scripts
will percieve you as 'dead' and remove you from their peer listings. You will still *recieve* up-to-date
peer listings, however. It is *highly* recommended that you leave this feature on.
<?
	}
?>
</p>
</td></tr></table>

<?
} else {
?>

<form action="<?=$cmyname?>?setconf=1&user=<?=$user?>&pass=<?=$pass?>" method="POST">

<table border="0" cellpadding="3" align="center" width="100%">
<tr><td class=blue>Name of the main script:</td><td class=dblue><input name="myname" type="text" value="<?=$myname?>"></td></tr>
<tr><td class=blue>Path to the cecid-client support script:</td><td class=dblue><input name="cecidclient" type="text" value="<?=$cecidclient?>"></td></tr>
<tr><td class=blue>Path to the banned words file:</td><td class=dblue><input name="bwordpath" type="text" value="<?=$bwordpath?>"></td></tr>
<tr><td class=blue>Path to the template directory:</td><td class=dblue><input name="templatepath" type="text" value="<?=$templatepath?>"></td></tr>
<tr><td class=blue>Path to the client IP database:</td><td class=dblue><input name="addrdbasepath" type="text" value="<?=$addrdbasepath?>"></td></tr>
<tr><td class=blue>Path to the client access database:</td><td class=dblue><input name="accessdbasepath" type="text" value="<?=$accessdbasepath?>"></td></tr>
<tr><td class=blue>Path to the script database:</td><td class=dblue><input name="scriptdbasepath" type="text" value="<?=$scriptdbasepath?>"></td></tr>
<tr><td class=blue>Path to the stats database:</td><td class=dblue><input name="statsdbasepath" type="text" value="<?=$statsdbasepath?>"></td></tr>
<tr><td class=blue>Image support: <small>(<a href="<?=$cmyname?>?help=imagesup" target="_blank">whats this?</a>)</small></td><td class=dblue><input name="imagesup" type="radio" value="1" <? if($imagesup) { echo "checked"; } ?>>&nbsp On &nbsp<input name="imagesup" type="radio" value="0" <? if (!$imagesup) { echo "checked"; } ?>>&nbsp Off</td></tr>
<tr><td class=blue>Debug: <small>(<a href="<?=$cmyname?>?help=debug" target="_blank">whats this?</a>)</small></td><td class=dblue><input name="debug" type="radio" value="0" <? if ($debug==0) { echo "checked"; } ?>>&nbsp Off &nbsp<input name="debug" type="radio" value="1" <? if ($debug==1) { echo "checked"; } ?>>&nbsp On &nbsp<input name="debug" type="radio" value="2"<? if ($debug==2) { echo "checked"; } ?>>&nbsp Verbose</td></tr>
<tr><td class=blue>Version: <small>(<a href="<?=$cmyname?>?help=version" target="_blank">read this</a>)</small></td><td class=dblue><input name="version" type="text" value="<?=$version?>"></td></tr>
<tr><td class=blue>Banned Word Addition: <small>(<a href="<?=$cmyname?>?help=addword" target="_blank">whats this?</a>)</small></td><td class=dblue><input type="radio" name="addword" value="1" <? if($addword) { echo "checked"; } ?>>&nbsp On &nbsp<input type="radio" name="addword" value="0" <? if(!$addword) { echo "checked"; } ?>>&nbsp Off &nbsp</td></tr>
<tr><td class=blue>Respond to PING: <small>(<a href="<?=$cmyname?>?help=respondtoping" target="_blank">whats this?</a>)</small></td><td class=dblue><input type="radio" name="respondtoping" value="1" <? if($respondtoping) { echo "checked"; } ?>>&nbsp Yes &nbsp<input type="radio" name="respondtoping" value="0" <? if(!$respondtoping) { echo "checked"; } ?>>&nbsp No &nbsp</td></tr>
<tr><td class=blue>New username (optional):</td><td class=dblue><input name="user" type="text" value=""></td></tr>
<tr><td class=blue>New password (optional):</td><td class=dblue><input name="pass" type="password" value=""></td></tr>
<tr><td class=blue colspan="2"><input type="submit">&nbsp<input type="reset"></td></tr>
</table>
</form>

<?

}

$nostat=true;
include "footer.php";
?>
Return current item: CECID: CEnsorship CIrcumvention Device