WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • WebsiteBaker Website Showcase »
  • Canadian Erotic Website
  • Print
Pages: [1]   Go Down

Author Topic: Canadian Erotic Website  (Read 21016 times)

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Canadian Erotic Website
« on: December 03, 2009, 01:40:32 PM »
I dont know if it's a first, but here a Erotic website done entirely in WB.

the english version is not finish, well, the french version too... we are finishing that right now.

http://www.mea-culpa.com/

the pics are secured server side, so I'm not that effrayed that a loophole of WB will compromise the site.

i'll update you when the english version work properly
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #1 on: December 03, 2009, 01:55:56 PM »
very nice design
Logged
Web developer

mr-fan

  • Guest
Re: Canadian Erotic Website
« Reply #2 on: December 03, 2009, 03:43:42 PM »
to check and comment the other pages we need a testaccount..... :lol: :lol:

regards across the ocean!

martin
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #3 on: December 03, 2009, 03:54:35 PM »
yea :) give us some test account :)
Logged
Web developer

Offline Vincent

  • Posts: 376
  • Gender: Male
    • websites voor ondernemers
Re: Canadian Erotic Website
« Reply #4 on: December 03, 2009, 06:54:18 PM »
Looks like WB is growing mature: for being among the big boys it needs at least one erotic site. This is a mile stone!
Well done.

Vincent
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Canadian Erotic Website
« Reply #5 on: December 03, 2009, 10:04:21 PM »
Indeed a nice job did a quick check and the site looks good, nice design! I wonder how you did the login section, so what can we expect there, simple wysiwyg pages with FLV files or custom made modules with all kind of things.
Logged
BRAMUS Internet Services

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Canadian Erotic Website
« Reply #6 on: December 03, 2009, 10:14:18 PM »
O lá lá.

Design looks good, indeed.
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Canadian Erotic Website
« Reply #7 on: December 04, 2009, 01:45:52 AM »
custom made media gallery

this is what i'm working to get GPL :
Media Album
- create photo albums on the fly from a zip file
- create flash video like youtube does (need a linux server with vlc & mencoder installed)
- create pdf album (with image preview taken from the pdf)

the site is server side secured, there is a folder (/SECURED) blocked by appache and I use a php script to read all medias, this script verify your membership on WebsiteBaker so even if you take the image link and post it, it's unavailable (this is better than a member section, since media aren't protect by session based member area)

if somebody ask specifics on how to protect media from outside read in a member area, I can provide code and trics
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #8 on: December 04, 2009, 09:22:45 AM »
cool, but you need to have SSL right ?

Could you post tips how to do it,  please ? It is nice that everybody cant access media files just by typing exact url..

Specialy if you have different content for registered users only..

cheers
I.

 
Logged
Web developer

Offline GRID8400

  • Posts: 119
  • Gender: Male
  • It's all about design!
    • KEY2DESIGN
Re: Canadian Erotic Website
« Reply #9 on: December 04, 2009, 01:38:05 PM »
Looks great!
but...is it a WB site??
hmmm

Logged
Our WB websites: KEY2DESIGN & KEY2PICTURE

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Canadian Erotic Website
« Reply #10 on: December 04, 2009, 04:52:05 PM »
no ssl
just apache
"Deny from all"

check, i'll give you a link to a direct image :
http://www.mea-culpa.com/SECURED/33_jinny/56/images/10-mea-culpa.jpg

how ppl will see the image :
http://www.mea-culpa.com/imageread.php?fichier=%2FSECURED%2F33_jinny%2F56%2Fimages%2F10-mea-culpa.jpg

can you see it ? can you hack it ? :P

here the "imageread.php" code :
Code: [Select]
<?php
require("config.php");
if(isset(
$_SESSION[&#39;USER_ID&#39;]) && SESSION_STARTED) {
    
$allowedtypes = array(&#39;image/gif&#39;, &#39;image/png&#39;, &#39;image/jpeg&#39;);
    
$fichier = str_replace(&#39;../&#39;,&#39;&#39;,WB_PATH.&#39;/&#39;.urldecode($_GET[&#39;fichier&#39;]));
    
if(file_exists($fichier)) {
        
$mimetype = mime_content_type($fichier);
        if(
in_array($mimetype, $allowedtypes)) {
            
header("Content-Type: " . $mimetype);
            
header("Content-Length: " . filesize($fichier));
            
header("Cache-Control: private");
            echo 
file_get_contents($fichier);
        }
    } else {
        echo &
#39;oups&#39;;
    
}
} else {
    
header(&#39;HTTP/1.0 403 forbidden&#39;, TRUE, 403);
    
die(&#39;<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<
title>403 Forbidden</title> 
</
head><body> 
<
h1>Forbidden</h1> 
<
p>You don\&#39;t have permission to access &#39;.urldecode($_GET[&#39;fichier&#39;]).&#39;
on this server.</p> 
</
body></html> &#39;);
}
?>

just for fun, i stand by my code :P
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #11 on: December 04, 2009, 08:23:51 PM »
Hi,

The "oups" line is for registered groups right ?

And another dummy question: where to put this code :)

cheers
Logged
Web developer

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Canadian Erotic Website
« Reply #12 on: December 04, 2009, 09:23:16 PM »
the code is for reading images in the member section.

you put it in a php file in the root of your site (the same place as your config.php)
and use it as such in your code :
<img src="/imageread.php?fichier=URLENCODED-ROOT-BASED-FILE-LINK(LIKE /SECURED/LALA/IPS.JPG)" />

it only verify if you are logged, not with what your logged at

the "oups" is for a file not found, or backtracking folder attempt (hacking calling a file outside your website folders)

here my "zipread.php" file, use like the imageread.php (with fichier=/secured...) but download the file you link it to.
so if you want only your users to download "thisdocument.doc" you link to zipread.php?fichier=/secured/thisdocument.doc

here the code (i've added some comments) :
Code: [Select]
<?php
require("config.php");
if(isset(
$_SESSION[&#39;USER_ID&#39;]) && SESSION_STARTED) {
    # code the url
    
$DEC = urldecode($_GET[&#39;fichier&#39;]);
    # set unalloewed file, so nobody want to read /config.php or something
    
$unallowed_to_read = array(&#39;php&#39;,&#39;html&#39;,&#39;htm&#39;,&#39;htaccess&#39;);
    # remove any attempt to back up your folders
    
$fichier = str_replace(&#39;../&#39;,&#39;&#39;,WB_PATH.&#39;/&#39;.urldecode($_GET[&#39;fichier&#39;]));
    #end(explode(&#39;.&#39;,$fichier)) = the remaining of an explosion of the filename of &#39;.&#39; (the extension)
    
if(file_exists($fichier) && (!in_array(end(explode(&#39;.&#39;,$fichier)),$unallowed_to_read))) {
        
header("Content-Type: " . mime_content_type($fichier));
        
header("Content-Length: " . filesize($fichier));
        
header("Content-Transfer-Encoding: binary");
        
header("Cache-Control: private");
        
header(&#39;Content-Disposition: attachment; filename="&#39;.end(explode(&#39;/&#39;,$DEC)).&#39;"&#39;);
        
echo file_get_contents($fichier);
    } else {
        
# in case of absent file or attempt at hacking
        
echo &#39;oups&#39;;
    
}
} else {
    
# not logged ? forbidden! 
    
header(&#39;HTTP/1.0 403 forbidden&#39;, TRUE, 403);
    
die(&#39;<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<
title>403 Forbidden</title> 
</
head><body> 
<
h1>Forbidden</h1> 
<
p>You don\&#39;t have permission to access &#39;.urldecode($_GET[&#39;fichier&#39;]).&#39;
on this server.</p> 
</
body></html> &#39;);
}
?>


Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Argos

  • Guest
Re: Canadian Erotic Website
« Reply #13 on: December 10, 2009, 10:40:14 PM »
Very nice.. eh... website!  :wink:
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #14 on: January 04, 2010, 11:28:45 PM »
Hi,

Could you please repost this SECURED solution to another - new post, so it would be easier for search.

I also suggest to post this to WB help pages..

cheers
Logged
Web developer

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Canadian Erotic Website
« Reply #15 on: January 07, 2010, 09:16:55 PM »
i'll do, when the website is finished, we just did the english version
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

chio

  • Guest
Re: Canadian Erotic Website
« Reply #16 on: January 07, 2010, 11:16:35 PM »
Hmm .. there are problems with IE8.. clicking on the 1(prelude) - 2.. - 3.. buttons doesnt have any effect.
Open with right click and choose "open link" does.
I have win7 & IE8 for a few days only - its still "factory default"..
Logged

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Canadian Erotic Website
« Reply #17 on: January 08, 2010, 03:45:01 PM »
Thanks, you are the first one to telll us that.

it seams WB made <ìnput type="image" /> insted of an <img tag...
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

Offline Kaliphornia

  • Posts: 40
  • Gender: Male
    • Gweb
Re: Canadian Erotic Website
« Reply #18 on: May 22, 2010, 06:22:40 AM »
Thanks, I signed up!
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Canadian Erotic Website
« Reply #19 on: November 26, 2010, 10:52:00 PM »
I was curious and I was strugling with the code for few days untill I figured it out.

It seems that mime_content_type is deprecated in php 5++

So dont forget to include following code after require(config.php); line..

Code: [Select]

if(!function_exists('mime_content_type')) {

    function mime_content_type($filename) {

        $mime_types = array(

            'txt' => 'text/plain',
            'htm' => 'text/html',
            'html' => 'text/html',
            'php' => 'text/html',
            'css' => 'text/css',
            'js' => 'application/javascript',
            'json' => 'application/json',
            'xml' => 'application/xml',
            'swf' => 'application/x-shockwave-flash',
            'flv' => 'video/x-flv',

            // images
            'png' => 'image/png',
            'jpe' => 'image/jpeg',
            'jpeg' => 'image/jpeg',
            'jpg' => 'image/jpeg',
            'gif' => 'image/gif',
            'bmp' => 'image/bmp',
            'ico' => 'image/vnd.microsoft.icon',
            'tiff' => 'image/tiff',
            'tif' => 'image/tiff',
            'svg' => 'image/svg+xml',
            'svgz' => 'image/svg+xml',

            // archives
            'zip' => 'application/zip',
            'rar' => 'application/x-rar-compressed',
            'exe' => 'application/x-msdownload',
            'msi' => 'application/x-msdownload',
            'cab' => 'application/vnd.ms-cab-compressed',

            // audio/video
            'mp3' => 'audio/mpeg',
            'qt' => 'video/quicktime',
            'mov' => 'video/quicktime',

            // adobe
            'pdf' => 'application/pdf',
            'psd' => 'image/vnd.adobe.photoshop',
            'ai' => 'application/postscript',
            'eps' => 'application/postscript',
            'ps' => 'application/postscript',

            // ms office
            'doc' => 'application/msword',
            'rtf' => 'application/rtf',
            'xls' => 'application/vnd.ms-excel',
            'ppt' => 'application/vnd.ms-powerpoint',

            // open office
            'odt' => 'application/vnd.oasis.opendocument.text',
            'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
        );

        $ext = strtolower(array_pop(explode('.',$filename)));
        if (array_key_exists($ext, $mime_types)) {
            return $mime_types[$ext];
        }
        elseif (function_exists('finfo_open')) {
            $finfo = finfo_open(FILEINFO_MIME);
            $mimetype = finfo_file($finfo, $filename);
            finfo_close($finfo);
            return $mimetype;
        }
        else {
            return 'application/octet-stream';
        }
    }
}


cheers
Logged
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • WebsiteBaker Website Showcase »
  • Canadian Erotic Website
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2