This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
paste-manager/common.php

34 lines
793 B
PHP
Raw Normal View History

2012-01-18 23:23:08 +00:00
<?php
2012-01-18 23:23:36 +00:00
// The directory where code will be stored
2012-01-18 23:23:08 +00:00
define("DESTINATION", "../files/");
2012-01-18 23:23:36 +00:00
if (!is_writable(DESTINATION))
die ("Destination folder not writable");
2012-01-18 23:23:08 +00:00
2012-01-18 23:23:36 +00:00
// Path to the GeSHi languages
2012-01-18 23:23:08 +00:00
define("GESHI_DIR", "../geshi/geshi/");
2012-01-18 23:23:36 +00:00
// 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);
2012-01-18 23:23:08 +00:00
?>