Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/include/uploadp.php
blob: 82f1bb5b6fff01c5aa720cc1a5b9138d53f9e861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

/**
 * Copyright (C) 2011-2019 Visman (mio.visman@yandex.ru)
 * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 */

// Make sure no one attempts to run this script "directly"
if (! defined('PUN')) {
	exit;
}

if (isset($pun_config['o_upload_config'])) {
	if ($pun_user['g_id'] == PUN_ADMIN || ($id == $pun_user['id'] && $pun_user['g_up_limit'] > 0 && $pun_user['g_up_max'] > 0)) {
		if (file_exists(PUN_ROOT . 'lang/' . $pun_user['language'] . '/upload.php')) {
			require PUN_ROOT . 'lang/' . $pun_user['language'] . '/upload.php';
		} else {
			require PUN_ROOT . 'lang/English/upload.php';
		}

		echo "\t\t\t\t\t" . '<li' . (($page == 'upload') ? ' class="isactive"' : '') . '><a href="upfiles.php?id=' . $id . '">' . $lang_up['upfiles'] . '</a></li>' . "\n";
	}
}