Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: March 26, 2017, 02:18:09 PM 
Started by stephane - Last post by skian
Salut voisin !

I would recommend using this code snippet to seamlessly switch between http and https based on the current url.

Code: [Select]
function site() {
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$host = $protocol.$_SERVER['HTTP_HOST'];
$directory = dirname($_SERVER['SCRIPT_NAME']);
$website = $directory == '/' ? $host.'/' : $host.$directory.'/';
return $website;
}

See https://github.com/skiane/snews1.80/blob/master/snews.php, line 112

 2 
 on: March 23, 2017, 11:07:33 AM 
Started by stephane - Last post by stephane
Ok I think it's OK. I just change the function site correctly like this
Code: [Select]
$host = 'https://'.$_SERVER['HTTP_HOST'];

For the first test I put an S also in SERVER, not an good idea  :P

Problem solved  ;D

 3 
 on: March 22, 2017, 07:41:15 PM 
Started by stephane - Last post by stephane
Hello,
I have to change a website in https. To do this is I think I have to modify the function site with https instead of http.
Code: [Select]
$host = 'https://'.$_SERVER['HTTPS_HOST'];

Is that right ? Do I have to change anything else in the snews file ?

And maybe in the htaccess file ?

(Of course I have a certificat in my server)  :P

Thank's for your answer.
Stéphane

 4 
 on: October 14, 2016, 10:06:54 PM 
Started by Rui Mendes - Last post by Rui Mendes
For who doesn't know him:
- Dennis Ritchie, Father of C and Co-Developer of Unix

 5 
 on: September 18, 2016, 01:36:21 PM 
Started by Rui Mendes - Last post by Rui Mendes
It's possible jmonroe, when I have time to do it.

Since I started to work full time, my free time is gone.  And I'm evolved my CMS, and my tinyCMS (new WIP - Work In Progress).
I have another project almost ready "RTE" (Rich Text Editor HTML 5).

Another thing, I must learn new technologies to get a Job perfect to me. I'm not happy with my full-time job it's not programming, but it's only pays my bills. My idea was to work in UK/Irland but they left UE, so I need to think which country I want to work.  ???

I can promise start developing maybe December/January, sorry.

 6 
 on: September 12, 2016, 08:51:02 PM 
Started by Rui Mendes - Last post by Keyrocks
Is it possible that you can make this MU? It would be really helpful..for me at least. @keyrocks and @Rui Mendes

I suppose it would be possible, though I have not worked with Rui's 1.80 package other than a quick install and test-run. I've been busy with other things this summer. It would require a fair amount of code writing for sure.

 7 
 on: September 05, 2016, 06:44:01 AM 
Started by Rui Mendes - Last post by jmonroe
Is it possible that you can make this MU? It would be really helpful..for me at least. @keyrocks and @Rui Mendes


 8 
 on: July 22, 2016, 12:35:05 AM 
Started by Rui Mendes - Last post by Rui Mendes
sNews 1.80 - Bootstrap is ready.
Fork from Reborn 1.80

Live Demo
Login details:
- Username : test
- Password  : test

Help me:
If you want to help use GitHub

Smash Bugs or Download last version:
- Use Github : here


Author: Rui Mendes

 9 
 on: June 14, 2016, 06:10:02 AM 
Started by Rui Mendes - Last post by Keyrocks
There aren't many visitors to this Forum anymore Rui.  :-\

 10 
 on: June 12, 2016, 04:31:39 PM 
Started by Rui Mendes - Last post by Rui Mendes
Some changes in cleanXSS for better.

I'd try lots of malicious code to see if comments are intact, not clean xss code but transform it t read without problems. I use this site with a lot code to try

Please try and give some feedback.

Pages: [1] 2 3 ... 10