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:
le="color: #000000"><?php <div class="errorMsg"><div>WARNING: Folder 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>WARNING: Folder 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: 942

  • Since: 2002/12/14


in "yourXoops/admin.php"
le="color: #000000"><?php if (strpos(XOOPS_PATH . '/', XOOPS_ROOT_PATH . '/') !== false || strpos(XOOPS_PATH . '/', $_SERVER['DOCUMENT_ROOT'] . '/') !== false) { xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDE, XOOPS_PATH)); echo '<br />'; } if (strpos(XOOPS_VAR_PATH . '/', XOOPS_ROOT_PATH . '/') !== false || strpos(XOOPS_VAR_PATH . '/', $_SERVER['DOCUMENT_ROOT'] . '/') !== false) { xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDE, XOOPS_VAR_PATH)); echo '<br />'; }


and the text variables are in "yourXoops/language/english/admin.php"
le="color: #000000"><?php efine('_AD_WARNINGNOTWRITEABLE','WARNING: Folder %s is not writeable by the server. <br />Please change the permission of this folder.<br /> in Unix (777), in Win32 (writable)'); define('_AD_WARNINGXOOPSLIBINSIDE','WARNING: Folder %s is inside DocumentRoot! <br />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

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!