Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Magic Quotes And Add/strip Slashes To Be Deprecated 
 
mort wrote: [View Post]
I believe your biggest problem is paths?

This is your url:

http://thenortherntundra.com/viewtopic.php?f=3&t=1

Icy Phoenix is/was not designed to run in the root of your domain, although it can be made to do so.

Can I suggest that you remove all Icy Phoenix stuff from the root of your domain and create a folder "forum" (Or whatever you wish it to be) and upload all of Icy Phoenix to that folder and install it from there; so that you end up with something like this.

http://thenortherntundra.com/MyFolderName/viewtopic.php?f=3&t=1

It's the simplest way of avoiding all other problems in the future, when it comes to path issues - And in particular - .htaccess issues.


I thought that un-commenting this line from the .htaccess file was the only thing you needed to do when installing on root.
ea.
Code: [Download] [Hide] [Select]
RewriteEngine On
#This may cause issues with subdirs and so it is not enabled by default.
#RewriteBase /

becomes,
Code: [Download] [Hide] [Select]
RewriteEngine On
#This may cause issues with subdirs and so it is not enabled by default.
RewriteBase /

on a root directory install?

My forum is installed in the root dir.  
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Images In Posts 
 
I could point out some problems with having Icy htaccess in the root - But it's a bit pointless, as the last experience I had was with v27c (I think)

So no doubt I shall not be attempting to provide any other support in future because I have not been keeping up what's happened to Icy Phoenix since then - So it's time to move on again.  

And what I mean by time to move on again - Counting both of my handles here, my total accumulative posts to date are 2,188 as I was trying to knock MG from the top spot and failed miserably.  



Time for someone else to give it a try - But I guess it will never happen!
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Images In Posts 
 
hm. do you have magic_quotes_gpc on ??

as i see the Flags comented, but i´m not shure, since i don´t understand .htaccess files and rules very well.

anyway , this option should be on by default.

BTW there was a setting in ACP. images in posts, Upload should be set to ALL or Reg

and precompiled posts should be set OFF
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Images In Posts 
 
I'm pretty sure Icy checks the status of magic_quotes_gpc before it adds slashes or not to prevent double-slashes etc.

And as I understand it magic_quotes_gpc wont exist in phpv6 and addslashes and stripslashes are to be deprecated and replaced with mysql_real_escape_string()


addslashes escapes: ', ", \, and NUL
mysql_real_escape_string escapes, in addition: \x00, \n, \r, and \x1a.

Edit:

And as for checking Magic Quotes etc, it should look something like this.

stripslashes or addslashes

Code: [Download] [Hide] [Select]
// escape variables
function escape($val){

    $val = trim($val);

    if(get_magic_quotes_gpc()) {
    $val = stripslashes($val);
    }
     return mysql_real_escape_string($val);
}




Or just turn them off altogether in Icy Script.
 



 
Last edited by mort on Fri 30 Dec, 2011 07:30; edited 2 times in total 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Images In Posts 
 
If anyone would like me to split this topic just shout a new title and a location to put it, cause I think we're drifting away from devildog's support question IMHO  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Magic Quotes And Add/strip Slashes To Be Deprecated 
 
Read about this on google - - - Going to mean a lot of work for some people.  
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Images In Posts 
 
Cut it here Josh!  

http://www.icyphoenix.com/viewtopic.php?p=54848#p54848
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
I hope this is how you meant it Mort ...
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
LOL

I am lost. I should add  little more info though.

The IcyPhoneix version I have installed in the root folder of my TLD is 1.3.0.53b, following I have attached my .htaccess from that website.
Spoiler: [ Show ]


Notice that the rewite base is uncommented at line 55, this website is hosted on a shared server with GoDaddy. The URL if you wish to check that things are working is www.gplforum.com


I can't think of anything that I have had a problem with due to it being installed in the root folder, however if anyone knows of any problems with later versions please let me know.
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
Never experienced any problem with RewriteBase to /, may it be with IcyPhoenix or my own websites.
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
Oh Dear,

The problem is that in the past some of those people who had/have installed IP to the root of the public folder.

Then used cPanel or the likes to add "hot-linking, re-directs" etc, and the whole script in the .htaccess file has collapsed into one continuous line.

Doesn't work all that well when it's just one BIG - -  LONG string of commands.

And no-one said it CAN'T work in the root of the public folder - it just needs to be adjusted in the manner that you two have gone on and on about.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
Ahh! Thanks for explaining.

Yeah I don't use Cpanel for any of my websites, I have access to a form of it with my Godaddy host but I only use the economy service with them anyway. (so there is no need for virtual-hosts and so on)

For my local server I am a die-hard unix guy, so everything is done manually. For example; to keep everything clean on my server, I install everything to it's own directory (/var/www/IcyPhoenix_1.3...) so I know what version I am running and everything like that. On top of that everything get it's own database accordingly.
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
I'm a bit lost in this topic... I still don't understand what the issue is.

If it is not solved yet, can you please try to explain again please?
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
Well this topic got split for some reason that I have yet to understand.

The original problem was  here >> http://www.icyphoenix.com/viewtopic.php?f=2&t=8299

Not sure why it got split or what it has to do with the new title, but I have no problem.
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Magic Quotes And Add/strip Slashes To Be Deprecated 
 
If there are no issues and everything is working fine... I have no issues then!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events