Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-10-10 06:51:40

Eri
Member
Registered: 2011-03-18
Posts: 977

htaccess link change

I am using embed in iframe for better security.
how i can change the embed link from
http://mysite.com/embed.php?id=VIDEO_ID
to
http://mysite.com/embed/VIDEO_ID/


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-10-10 07:17:06

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: htaccess link change

You dont need to modify .htaccess. In index.php after:

} elseif ($module == '404' && VUri::request(1) == '') {
    VModule::load('404', TRUE);

add:

} elseif ($module == 'embed') {
   require 'embed.php';
   VF::close();
}

In embed.php you need:

if (VUri::request(1) != '') {
   $video_id = (int) VUri::request(1);
} elseif (isset($_GET['id']) && is_numeric($_GET['id'])) {
    $video_id = (int) $_GEt['id'];
}

if (!$video_id) {
   die('Invalid video!');
}

Didnt test the code. If it doesnt work as expected, just let me know and i fix.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB