include to require_once

This commit is contained in:
2022-06-25 16:02:40 +03:00
parent 1406f27cd6
commit 03a4fa1275
84 changed files with 2741 additions and 17188 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ class dialog
$act0 = explode('=',$act[0]);
if( $act0[0] == 'fileqst' ) {
if(file_exists('_incl_data/class/quest/'.htmlspecialchars($act0[1]).'.php')) {
include('_incl_data/class/quest/'.htmlspecialchars($act0[1]).'.php');
require_once('_incl_data/class/quest/'.htmlspecialchars($act0[1]).'.php');
}else{
$txt .= '<br><b><font color=red>Êâåñò íå íàéäåí â ñïèñêàõ NPS...</b></font>';
}