Add new directory structure. Tags will contain current and past releases, and stable will contain any bug fixes to the current stable release so users won't have to get the potentially broken trunk build to fix a screwup in stable.
Trunk updated to 0.9 git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@176 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
This commit is contained in:
commit
88bacfad9c
316 files changed
+79806
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Generate the list of pages, linking to each
|
||||
*
|
||||
* @param integer $boardpage Current board page
|
||||
* @param integer $pages Number of pages
|
||||
* @param string $board Board directory
|
||||
* @return string Generated page list
|
||||
*/
|
||||
|
||||
/* <3 coda for this wonderful snippet
|
||||
print $contents to $filename by using a temporary file and renaming it */
|
||||
function print_page($filename, $contents, $board) {
|
||||
global $tc_db;
|
||||
|
||||
$tempfile = tempnam(KU_BOARDSDIR . $board . '/res', 'tmp'); /* Create the temporary file */
|
||||
$fp = fopen($tempfile, 'w');
|
||||
fwrite($fp, $contents);
|
||||
fclose($fp);
|
||||
/* If we aren't able to use the rename function, try the alternate method */
|
||||
if (!@rename($tempfile, $filename)) {
|
||||
copy($tempfile, $filename);
|
||||
unlink($tempfile);
|
||||
}
|
||||
|
||||
chmod($filename, 0664); /* it was created 0600 */
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user