Portable_XH

Questions about how to install and problems installing - please read the documentation first!

Portable_XH

Postby cmb » Sat Mar 24, 2012 9:14 pm

Hello Community,

I've just released Portable_XH 1alpha1. You can get it from my website.

Portable_XH is a portable CMSimple_XH distribution for Windows that is meant to run on your local machine without the need to have a webserver with PHP installed. It requires no installation, runs under a guest account and even from an USB drive. It doesn't allow access from other computers, particularly from the internet, so its absolutely fine, when incoming requests are blocked from your firewall.

Portable_XH is the perfect solution to have a demo of CMSimple_XH at hand, or to portably prepare a website without uploading it to some webspace in the first place.

Portable_XH couldn't be tested so far in various environments. It is a so called ALPHA version. Use with caution!

Usage: unzip and execute Portable_XH.exe and have a look at the toolbar notification area.

As always any feedback is welcome. I'm especially interested in which environments it works or not (Windows version, User account settings, Firewalls etc.) And of course, if you find it useful (and if so, for which purposes).

Christoph

PS: I was in doubt, where to post this. Perhaps the thread should be moved to a better place.
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5484
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Re: Portable_XH

Postby maeg » Sun Mar 25, 2012 3:17 pm

Hi

Thats really cool :D

Thx for sharing that
maeg
 
Posts: 411
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark

Re: Portable_XH

Postby bca » Thu Mar 29, 2012 3:39 pm

Nice!

So far works ok in XP SP3
Windows firewall
Avast antivirus - told me it might be a virus on initial run


B
bca
 
Posts: 200
Joined: Tue Sep 15, 2009 4:49 pm

Re: Portable_XH

Postby cmb » Thu Mar 29, 2012 4:38 pm

Hi B.,

thanks for the feedback and the infos. :)

bca wrote:told me it might be a virus on initial run

It's compiled with Delphi4 (pretty old version) -- perhaps the signature matches a virus (I had this problem a while ago with Avira and self written C programs compiled with tcc).

But I can asure you and others, that it's no virus or other malware. You can have a look at the sources in src/.

Christoph
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5484
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Re: Portable_XH

Postby bca » Sun Jul 15, 2012 6:28 pm

Hi Christoph

When using Portable_XH with Video_XH the video seems to be referenced incorrectly

src="http://localhost/downloads/video.mp4"

Changing it manually to src="./downloads/bw_copy.mp4" makes it work

B
bca
 
Posts: 200
Joined: Tue Sep 15, 2009 4:49 pm

Re: Portable_XH

Postby cmb » Sun Jul 15, 2012 7:27 pm

Hi B,

bca wrote:src="http://localhost/downloads/video.mp4"

I suppose you mean: src="http://localhost/downloads/bw_copy.mp4", so what would have to be changed is just the absolute path.

I've changed the path to be an absolute one in the latest version (1beta3), because I've read, that the flash player sometimes has problems with relative URLs.

But indeed, the given URL cannot work for Portable_XH, as it ignores the port, which is not the default one :!: The absolute URL has to be:
Code: Select all
src="http://localhost:8080/downloads/bw_copy.mp4"

This can be fixed by changing plugins/video/index.php line 22f to:
Code: Select all
define('VIDEO_URL', 'http'
    . (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 's' : '')
    . '://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT']
    . preg_replace('/index.php$/', '', $_SERVER['PHP_SELF'])); 


The same holds for Forum_XH and for my suggestion about putting a respective constant into the core. And well, I just thought about user dirs (e.g. http://www.example.com/~user/). Not sure, if the code would work in this case -- have to check that somehow.

Anyway, thanks for pointing this issue out! That might save some trouble in the long run. :)

Christoph

PS: There was another bug in the code -- I've fixed it in place.
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5484
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron