1
timgno
Where is this code?
  • 2015/2/3 19:46

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Hi!

I was trying to change and create a new theme for cpanel and all file in admin system, but I can not find the line of code that follows:
<div class="errorMsg"><div>WARNINGFolder C:/UwAmp/www/xoops-2.5.8/htdocs/xoops_lib is inside DocumentRoot! <br />For security considerations it is highly suggested to move it out of DocumentRoot.div>div><br /><div class="errorMsg"><div>WARNINGFolder C:/UwAmp/www/xoops-2.5.8/htdocs/xoops_data is inside DocumentRoot! <br />For security considerations it is highly suggested to move it out of DocumentRoot.div>div><br />div>


I'm creating a new advanced bootstrap theme

Could you tell me please?

Thank You!

2
Bleekk
Re: Where is this code?
  • 2015/2/3 20:42

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


in "yourXoops/admin.php"
if (strpos(XOOPS_PATH '/'XOOPS_ROOT_PATH '/') !== false || strpos(XOOPS_PATH '/'$_SERVER['DOCUMENT_ROOT'] . '/') !== false) {
        
xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDEXOOPS_PATH));
        echo 
'';
    }

if (
strpos(XOOPS_VAR_PATH '/'XOOPS_ROOT_PATH '/') !== false || strpos(XOOPS_VAR_PATH '/'$_SERVER['DOCUMENT_ROOT'] . '/') !== false) {
        
xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDEXOOPS_VAR_PATH));
        echo 
'';
    }


and the text variables are in "yourXoops/language/english/admin.php"
efine('_AD_WARNINGNOTWRITEABLE','WARNING: Folder %s is not writeable by the server. Please change the permission of this folder. in Unix (777), in Win32 (writable)');

define('_AD_WARNINGXOOPSLIBINSIDE','WARNING: Folder %s is inside DocumentRoot! For security considerations it is highly suggested to move it out of DocumentRoot.');


the xoops_error function which creates the html output is in:
"include/functions.php"

3
timgno
Re: Where is this code?
  • 2015/2/3 22:20

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


My problem is another

I know that in the function xoops_error there is this piece of code:

but the background of this, if I use the property alert, bootstrap css, does not come out red

4
timgno
Re: Where is this code?
  • 2015/2/3 22:26

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Ok is an oversight of versions bootstrap

Quote:
alert alert-error

is used in version 2.3 while

Quote:
alert alert-danger

is used in version 3.3

I did not notice that the documents are different

Login

Who's Online

341 user(s) are online (219 user(s) are browsing Support Forums)


Members: 0


Guests: 341


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits