michael24179
01-06-2012, 02:10 PM
By conversion of some areas to SSL I have problems with some external sites that are called. I want this future can only be accessed via HTTP. An example is to be found here http://www.vbulletin-germany.com/forum/showthread.php/27857-HowTo-Forenbereiche-mit-HTTPS-absichern-ein-Anfang?p=170289&viewfull=1#post170289 The problem is that it is written for VB3.
Hence my question, how should the script be rewritten as follows to make it work in VB4
Einstiegspunkt: parse_templates
Plugin-Name: Werbebanner anzeigen
Ausf?hrungsreihenfolge: 6
Code:
// normale HTTP-Anfragen
if($_SERVER['SERVER_PORT'] == 80) {
// Banner anzeigen
$werbebanner = '<<< CODE 1 >>>';
// HTTPS-Anfragen
} else {
$rnd = rand(0, 1);
// HTTPS Banner
if($rnd == 0) {
$werbebanner = '<<< CODE 2 a >>>';
} else {
$werbebanner = '<<< CODE 2 b >>>';
}
}
Excuse for my bad English :erm:
--------------- Added 1325928690 at 1325928690 ---------------
No idea ?
Hence my question, how should the script be rewritten as follows to make it work in VB4
Einstiegspunkt: parse_templates
Plugin-Name: Werbebanner anzeigen
Ausf?hrungsreihenfolge: 6
Code:
// normale HTTP-Anfragen
if($_SERVER['SERVER_PORT'] == 80) {
// Banner anzeigen
$werbebanner = '<<< CODE 1 >>>';
// HTTPS-Anfragen
} else {
$rnd = rand(0, 1);
// HTTPS Banner
if($rnd == 0) {
$werbebanner = '<<< CODE 2 a >>>';
} else {
$werbebanner = '<<< CODE 2 b >>>';
}
}
Excuse for my bad English :erm:
--------------- Added 1325928690 at 1325928690 ---------------
No idea ?