Quote
Ken wrote:Quote
Raskolnikov wrote:
What does safemode mean? And how do we know which we are using?
Put the following code in a Custom Page and click "Preview" (you can also save it for later use):Code Download source
<?php
if (ini_get ( "safe_mode" ))
{
echo "SafeMode On";
}
else
{
echo "SafeMode Off";
}
?>
This could maybe be added to the Admin Panel somewhere, so all could just go to Admin Panel an see.
Quote
Raskolnikov wrote:
What does safemode mean? And how do we know which we are using?
<?php
if (ini_get ( "safe_mode" ))
{
echo "SafeMode On";
}
else
{
echo "SafeMode Off";
}
?>
Quote
Paulsson wrote:
Non folder version: (safemode on)Code Download source$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
@opensidex("Random Photo");
$data=dbarray($result);
$filename=PHOTOS.$data['photo_id'].'t.jpg';
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."".$data['photo_thumb1']."' width='".$settings['thumb_w']."' height='".$settings['thumb_h']."'
title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>".$data['photo_title']."</a>
<br>
<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."'>".$data['album_title']."
</center></a>";
@closesidex();
}
Folder version: (safemode off)Code Download source$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
@opensidex("Random Photo");
$data=dbarray($result);
$filename=PHOTOS.$data['photo_id'].'t.jpg';
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."' width='".$settings['thumb_w']."' height='".$settings['thumb_h']."'
title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>".$data['photo_title']."</a>
<br>
<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."'>".$data['album_title']."
</center></a>";
@closesidex();
}
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
@opensidex("Random Photo");
$data=dbarray($result);
$filename=PHOTOS.$data['photo_id'].'t.jpg';
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."".$data['photo_thumb1']."' width='100' height='75'
title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>".$data['photo_title']."</a>
<br>
".$data['album_title']."
</center>";
@closesidex();
}
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions