File: populate.php

package info (click to toggle)
owl-dms 0.90-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 17,292 kB
  • ctags: 10,919
  • sloc: php: 48,457; sql: 3,603; sh: 363; perl: 204; makefile: 73
file content (29 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

/**
 * populate.php
 *
 * Author: Steve Bourgeois <owl@bozzit.com>
 * Project Founder: Chris Vincent <cvincent@project802.net>
 *
 * Copyright (c) 1999-2005 The Owl Project Team
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 *
 */
                                                                                                                                                                    
global $default;
                                                                                                                                                                    
require_once(dirname(dirname(__FILE__)) . "../config/owl.php");
require_once($default->owl_fs_root . "/lib/disp.lib.php");
require_once($default->owl_fs_root . "/lib/owl.lib.php");
require_once($default->owl_fs_root . "/lib/security.lib.php");

$clean = ob_get_contents();
ob_end_clean();

if (!fIsAdmin(true)) die("$owl_lang->err_unauthorized");

fInsertUnzipedFiles($default->owl_FileDir . "/" . fid_to_name(1) , 1, $default->owl_def_fold_security, $default->owl_def_file_security, "", $default->owl_def_file_group_owner, $default->owl_def_file_owner, $default->owl_def_file_meta, "", 1, 0, 1);

header("Location: " . "index.php?sess=$sess");
?>