mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
added: nonoko
This commit is contained in:
parent
fa28560982
commit
82972927d5
10
post.php
10
post.php
@ -402,10 +402,14 @@ if (isset($_POST['delete'])) {
|
||||
$post['name'] = $trip[0];
|
||||
$post['trip'] = isset($trip[1]) ? $trip[1] : '';
|
||||
|
||||
$noko = false;
|
||||
if (strtolower($post['email']) == 'noko') {
|
||||
$noko = true;
|
||||
$post['email'] = '';
|
||||
} else $noko = false;
|
||||
} elseif (strtolower($post['email']) == 'nonoko'){
|
||||
$noko = false;
|
||||
$post['email'] = '';
|
||||
}else $noko = $config['always_noko'];
|
||||
|
||||
if ($post['has_file']) {
|
||||
$post['extension'] = strtolower(mb_substr($post['filename'], mb_strrpos($post['filename'], '.') + 1));
|
||||
@ -737,7 +741,7 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
$root = $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'];
|
||||
|
||||
if ($config['always_noko'] || $noko) {
|
||||
if ($noko) {
|
||||
$redirect = $root . $board['dir'] . $config['dir']['res'] .
|
||||
sprintf($config['file_page'], $post['op'] ? $id:$post['thread']) . (!$post['op'] ? '#' . $id : '');
|
||||
|
||||
@ -776,7 +780,7 @@ if (isset($_POST['delete'])) {
|
||||
header('Content-Type: text/json; charset=utf-8');
|
||||
echo json_encode(array(
|
||||
'redirect' => $redirect,
|
||||
'noko' => $config['always_noko'] || $noko,
|
||||
'noko' => $noko,
|
||||
'id' => $id
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user