Random Screen Shot
$bannerCounter= 1;
foreach (glob("screens/img/*.php") as $filename){
include_once ("$filename");
}
$bannerAdTotals = $bannerCounter - 1;
if($bannerAdTotals>1)
{
mt_srand((double)microtime() * 1234567);
$bannerPicked = mt_rand(1, $bannerAdTotals);
}
else
{
$bannerPicked = 1;
}
$bannerAd = $bannerCode[$bannerPicked];
?>
|
Compile
This will give you the advantage of installing the wine patch globally for all users and/or the satisfaction of knowing you did it yourself. Please be aware you will need about 1.5 GB of free disk space for the source and around 3 GB if you are going to install.
If you have a binary version of Wine installed from a .rpm, .deb, etc., it's recommended to remove it before installing and setting up Wine from source.
1. Download wine source and untar
2. Copy the text block below into a file cont.diff, in the root of the source tree. You will need to change kernel to kernel32 if you are using newer source.
diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c
index 33f9ee1..d50cb7d 100644
--- a/dlls/kernel/process.c
+++ b/dlls/kernel/process.c
@@ -2460,6 +2464,7 @@ HANDLE WINAPI OpenProcess( DWORD access,
OBJECT_ATTRIBUTES attr;
CLIENT_ID cid;
+if (access & PROCESS_VM_WRITE) return NULL;
cid.UniqueProcess = (HANDLE)id;
cid.UniqueThread = 0; /* FIXME ? */
3.
cat cont.diff | patch -p1
4.
./configure && make depend && make
5. You can now "make install" or run wine directly from the source tree.