Dakle imam ovaj kod koji bi trebao da proveri da li je otvoren newsArchiv.ihtml i onda inkluduje neke datoteke a ako nije onda nista. Problem je sto ne znam funkciju koja proverava da li je fajl otvoren, trebala bi da stoji umesto file_exists.
<?php
if (file_exists(MODROOT. "modules/html/newsArchiv.ihtml")){
include MODROOT."shop/lib/lang_$lang.inc" && include MODROOT."shop/lib/lang_eng.inc";
}
else {
return 0;
}
type;
<?php
if (file_exists(MODROOT. "modules/html/newsArchiv.ihtml")){
include MODROOT."shop/lib/lang_$lang.inc" && include MODROOT."shop/lib/lang_eng.inc";
}
else {
return 0;
}
type;