Add an answer system
This commit is contained in:
parent
e77133c393
commit
c70382760a
4 changed files with 132 additions and 26 deletions
27
common.php
27
common.php
|
|
@ -1,7 +1,34 @@
|
|||
<?php
|
||||
|
||||
// The directory where code will be stored
|
||||
define("DESTINATION", "../files/");
|
||||
if (!is_writable(DESTINATION))
|
||||
die ("Destination folder not writable");
|
||||
|
||||
// Path to the GeSHi languages
|
||||
define("GESHI_DIR", "../geshi/geshi/");
|
||||
|
||||
|
||||
// The size of the generated identifier
|
||||
define("NB_CHAR", 5);
|
||||
|
||||
// If you increase NB_CHAR, in order to help review the old codes published, you
|
||||
// can adjust the minimum
|
||||
define("ALLOW_NB_MIN", 5);
|
||||
|
||||
|
||||
|
||||
/*********************************************
|
||||
* Don't make any change under this comment ! *
|
||||
*********************************************/
|
||||
if (ALLOW_NB_MIN != NB_CHAR)
|
||||
{
|
||||
if (ALLOW_NB_MIN > NB_CHAR)
|
||||
define("RGXP_NB", NB_CHAR.",".ALLOW_NB_MIN);
|
||||
else
|
||||
define("RGXP_NB", ALLOW_NB_MIN.",".NB_CHAR);
|
||||
}
|
||||
else
|
||||
define("RGXP_NB", NB_CHAR);
|
||||
|
||||
?>
|
||||
Reference in a new issue