Skip to content
WJunction - Webmaster Forum

Help removing sample images from image script

Status
Not open for further replies.

MirandaWright's

Distinguished Member
3,248
2010
28
I am trying to remove the sample images on
Code:
http://www.imgme.net/

[slide]http://i.imgur.com/uvHrR.png[/slide]
do you guy have any idea on how i can do this to speed the site up more?
will pay 2$-4$ if someone can help figure this out.
 

12 comments

add
Code:
<!--

before
Code:
<table width="100%">
  <tbody>
    <tr>
      <td width="25%">

and add
Code:
-->

after
Code:
 </a>
      </td>
    </tr>
  </tbody>
</table>
</div>
</td>

This will comment out the code showing the images. Bythe way y the hell would any coder add full image on index & not thumnails
 
Code of those random uploaded images is probably in the index.php. Just open the index.php in some text editor, and search through all the lines, or post the index.php code on PasteBin.
 
@RRUSSHIM_ITM

That code is showing latest uploaded images, if he deletes images from that folder, he's automatically deleting all uploaded images.

And yeah, humour has a way better suggestion than mine, you'll just comment that part of the code, and nothing will be lost. It just won't show up anymore.
 
To be honest, I just checked the content of /img folder, and this is all that's in it:

http://imgme.net/img/

Basically, Elio just put up few images, they're not even rotating.

Instead of the commenting lines humour told you, you should try the php commenting system, as we're talking about index.php, right?

/*
Something
*/
 
better post the index code here so that we can tell u proper way. & if u feel ur skin can be ripped than PM Jason with the code & he will tell u which part & how to comment ;)
 
if someone wanted to rip it im sure they could
Code:
<?

/* -----------------------------------------

  Chevereto - Script de hosting de imagenes
  Nightly Build 1.6, rev 1 (19/07/2009)
  http://www.chevereto.com/

  Released under the GPL 2.0
  Copyright (C) 2008 by Rodolfo Berrios
  <inbox at rodolfoberrios dot com>

  ----------------------------------------- */

/* Si estas usando Chevereto, te agradecemos mantener un link hacia http://chevereto.com/ */

require('engine.php');

function rer(){
    ?>
    <br />
<br />
<!--<table width="100%">
<tr>
<?
    $s = glob('img/*');
    shuffle($s);
    $s = array_slice($s,0,4);
    foreach($s as $img){
        echo '<td width="25%"><a href="',$img,'" style="border:0px none"><img src="',$img,'" width="100%" style="max-height:150px;border:0px none;" class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this);top.focus()" onClick="top.focus()"/></a></td>';
    }
?>
</tr>
</table>
    <?
}
 
?>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=LANG;?>" lang="<?=LANG;?>">
<head>
<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">

/*
Shake image script (onMouseover)- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

//configure shake degree (where larger # equals greater shake)
var rector=3

///////DONE EDITTING///////////
var stopit=0 
var a=1

function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}

function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector+"px"
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector+"px"
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector+"px"
}
else{
shake.style.left=parseInt(shake.style.left)-rector+"px"
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}

function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}

</script>
<meta name="generator" content="Chevereto <?=SC_VERSION;?>" /><!-- Dejar para estadisticas por favor! -->

<title><? echo $titulo.' '.APP_NAME;?> - <?=TAG_LINE;?></title>

<meta name="description" content="IMGme - a fast reliable image host" />
<meta name="keywords" content="save,img,upload,jpg,gif,png,host,free,pic,image host" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="<?=LANG;?>" />
<link href="<?=URL_SCRIPT;?>estilo.css" rel="stylesheet" type="text/css" />

<link rel="shortcut icon" href="<?=PATH_SCRIPT;?>favicon.ico" type="image/x-icon" />

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="<?=PATH_SCRIPT;?>js/pngfix.js"></script>
<![endif]-->

<script type="text/javascript" src="<?=PATH_SCRIPT;?>js/prototype.js"></script>
<script type="text/javascript" src="<?=PATH_SCRIPT;?>js/scriptaculous.js"></script>
<script type="text/javascript" src="<?=PATH_SCRIPT;?>js/behaviour.js"></script>
<script type="text/javascript" src="<?=PATH_SCRIPT;?>js/rules.js"></script>



<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9480014-5");
pageTracker._trackPageview();
} catch(err) {}</script>






<script type="text/javascript">
// <![CDATA[
<? if ($spit==true) { ?>Behaviour.register(error);
<? } ?>
<? if ($modo==1 || $modo=='rr') { ?>Behaviour.register(_up);
<? } ?>
<? if ($modo==3) { ?>Behaviour.register(_proceso);
<? } ?>
<? if ($modo==2) { ?>Behaviour.register(_ver);
<? } ?>
<? if ($modo==2 || $modo==3) { ?>Behaviour.register(_social);
<? } ?>
<? if ($cut_url==true && $cut_url_user==true && $modo==1) { ?>
Behaviour.register(_pref);
<? } ?>
// ]]>
</script>

</head>

<body>

<div align="center"  ><a href="index.php"><img src="site-img/template/logo.png" border="0" alt="image host" /></a>
<BR>
<BR>




</div>









<center>

<table id="Table_01" width="697" height="45" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>-->
<a href="index.php"><img src="site-img/template/nav_01.png" width="113" height="43" alt="tos" border="0"></a></td>
<td>
<a href="/index.php?p=tools"><img src="site-img/template/nav_02.png" width="100" height="43" alt="contact" border="0"></a></td>

<td rowspan="2" background="site-img/template/nav_04.png" width="700">
<img src="site-img/template/spacer_nav.png" width="800" height="45" alt="" >
</td>
<td rowspan="2">
<img src="site-img/template/nav_06.png" width="9" height="45" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="site-img/template/nav_05.png" width="303" height="2" alt=""></td>
</tr>
</table>

<br/>


<table id="Table_01"  border="0" cellpadding="0" cellspacing="0">



    <tr>
        <td>
            <img src="site-img/template/index_01.png" width="14" height="16" alt=""></td>
        <td background="site-img/template/repeat_top.png" width="666" height="16" alt="">
            </td>
        <td>
            <img src="site-img/template/index_03.png" width="16" height="16" alt=""></td>
        <td>
            <img src="site-img/template/spacer.gif" width="1" height="16" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2" background="site-img/template/repeat_left.png" width="14" height="349" alt="">
            </td>
        <td bgcolor="#e8e8e8">
            
<? if ($spit==true) { ?>
<h1 id="error"><span><?=$errormsg?></span></h1>
<? } ?>

<? if ($modo==1) { ?>


<div id="contenido">


<div id="limite">JPG PNG BMP GIF <span>Max.<?=$max_mb;?>Mb</span></div>

<div id="selector_up">
    <div id="tab_container"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>>
        <div class="btn_local"><a class="local" id="linklocal" style="display: none;"></a></div>
        <div class="btn_remoto"><a class="remota" id="linkremota"></a></div>
    </div>

<? if ($cut_url==true && $cut_url_user==true) { ?><div id="preferencias"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>><a id="pclosed"><span><?=TXT_PREFERENCES;?></span></a><a id="popen" style="display:none;"><span><?=TXT_PREFERENCES;?></span></a></div><? } ?> 
</div> <!-- selector -->
    
    <form id="form_up" enctype="multipart/form-data" action="<?=PATH_SCRIPT;?>" method="post">

    <? if ($cut_url==true && $cut_url_user==true) { ?>
    <div id="pref-panel" style="display: none;"><div id="cajon-pref">



<p id="prefwater"><span id="red1"> Add the url of your watermark , PNG only</span><input name="watermarkurl" size="40" id="watermarkurl"    value="<? if(isset($_COOKIE['watermarkurl'])) {  echo $_COOKIE['watermarkurl'];  }  ?>"   /><a href="index.php?p=water"><img src="site-img/template/wtmk.png" border="0" /></a>
<span id="red1"> Text watermark</span><input name="watermarktext" size="20" id="watermarktext"    value="<? if(isset($_COOKIE['watermarktext'])) {  echo $_COOKIE['watermarktext'];  }  ?>"   />

<span id="zulu" >Color:</span>
<select name="color">
<option value="red">Red</option>
<option value="white">White</option>
<option value="black">Black</option>
</select>
<span id="zulu">Alignment:</span>
<select name="position">
<option value="center">center</option>
<option value="tleft">top left</option>
<option value="tright">top right</option>
<option value="bright">bottom right</option>
<option value="bleft">bottom left</option>
</select>




</p>



</div></div>  
    

<? } ?>

    <div id="contenedorupload">
        <div id="subir_local">
            <h2 id="chooselocal"><?=TXT_LOCAL;?></h2>
            <div class="inputs"><input name="fileup" type="file" size="60" id="localUP" onclick="javascript:document.getElementById('remotaUP').value = '';"/></div>
        </div>
        <div id="subir_remota" style="display: none;">
            <h2 id="chooseremota"><?=TXT_REMOTE;?></h2>
            <div class="inputs"><input name="remota" size="60" id="remotaUP" onclick="javascript:document.getElementById('localUP').value = '';"/></div>
        </div>
    </div>
        
    <div id="redimensionar">
        <div id="redimensionar_cajatitulo">
            <div id="redimensionar_titulo">
                <div id="boton_redimensionar"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>><span><a id="rclosed"></a><a id="ropen" style="display: none;"></a></span></div>
                <div id="red_mensaje"><span id="red1"><?=RESIZE_DSC;?></span><span id="red2" style="display: none;"></span></div>
            </div>
        </div>        
        <div id="redimensionar-borde" style="display: none;">
            <div id="cajonred">
                <div id="ancho_deseado"><?=RESIZE_WIDTH;?> <span><?=RESIZE_PIXELS;?></span></div>
                <input name="resize" id="resize"/>
                <div id="kepp"><?=RESIZE_KEEP;?></div>
            </div>
        </div>
    </div>
    
    <div id="boton_subir">
        <input type="image" src="<?=PATH_SCRIPT;?>site-img/btn_subir<? if (isset($lang)) { echo '_'.$lang; } ?>.gif" id="subir"/>
        <div id="enviando" style="display: none;"><span id="momentito"><?=TXT_UPLOADING;?></span></div>
    

</div>

    
    </form>
<? rer();?>





<? } ?>
<? if ($modo=='rr') { ?>
<!-- SUBIR -->

    <div id="imagenfull"><img src="<?=$urlrez?>" alt="<?=$urlrez?>" /></div>
    
    <form enctype="multipart/form-data" action="<?=PATH_SCRIPT;?>" method="post">
    
    <? if ($cut_url==true && $cut_url_user==true) { ?>




<p id="prefwater"><input name="" size="40" id="prefwater"  <? if(isset($_COOKIE['watermark'])) { ?>value=$_COOKIE['watermark']<? } ?>/></p>
    <div id="pref-panel" style="display: none;"><div id="cajon-pref"><p id="prefurl"><input name="" type="checkbox" id="cortarurl" value="" <? if(isset($_COOKIE['prefurl'])) { ?>checked="checked"<? } ?> /><label for="cortarurl"> <?=TXT_TINYURL?></label></p><div id="save"><a id="savepref" /><?=TXT_CLOSE_PREF;?></a></div></div></div>  
    <? } ?>
    
    <div id="contenedorupload">
        <div id="subir_remota">
            <h2 id="chooseremota"><?=TXT_REMOTE_RR;?></h2>
            <div class="inputs"><input value="<?=$urlrez?>" name="remota" size="60" id="remotaUP" onclick="javascript:document.getElementById('localUP').value = '';"/></div>
        </div>
    </div>
    
    <div id="redimensionar">
        <div id="redimensionar_cajatitulo">
            <div id="redimensionar_titulo">
                <div id="boton_redimensionar"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>><span><a id="rclosed"></a><a id="ropen" style="display: none;"></a></span></div>
                <div id="red_mensaje"><span id="red1"><?=RESIZE_DSC;?></span><span id="red2" style="display: none;"></span></div>
            </div>
        </div>        
        <div id="redimensionar-borde" style="display: none;">
            <div id="cajonred">
                <div id="ancho_deseado"><?=RESIZE_WIDTH;?> <span><?=RESIZE_PIXELS;?></span></div>
                <input name="resize" id="resize"/>
                <div id="kepp"><?=RESIZE_KEEP;?></div>
            </div>
        </div>
    </div>
    
    <div id="boton_subir">
        <input type="image" src="/site-img/btn_subir<? if (isset($lang)) { echo '_'.$lang; } ?>.gif" id="subir"/>
        <div id="enviando" style="display: none;"><span id="momentito"><?=TXT_UPLOADING;?></span></div>
    </div>
     
    </form>
    <? rer();?>
<!-- contenido --><? } // MODO RR ?>
<? if ($modo==4) { ?>
<div id="subiste-viendo"><h1><?=TXT_TEMP_SAVE;?></h1></div>

    <form enctype="multipart/form-data" action="<?=PATH_SCRIPT;?>" method="post">
    <input name="remota" type="hidden" value="<?=$URLrdn?>" />
    <div id="redimensionar_cajatitulo" class="denuevo">
        <div id="redimensionar_titulo"><div id="boton_redimensionar"<? if (isset($lang)) { echo ' class="'.$lang.'"'; } ?>><span><a id="ropen"></a></span></div>
        <div id="red_mensaje"><span id="red1"><?=RESIZE_DSC;?></span><span id="red2" style="display: none;"></span></div>
        </div>
    </div>
    <div id="redimensionar">
        <div id="redimensionar-borde">
            <div id="cajonred">
                <div id="ancho_deseado"><?=RESIZE_WIDTH;?> <span><?=RESIZE_PIXELS;?></span></div>
                <input name="resize" id="resize"/>
                <div id="kepp"><?=RESIZE_KEEP;?></div>
            </div> 
            <div id="boton_redo">
                <input type="image" src="site-img/btn_reintentar<? if (isset($lang)) { echo '_'.$lang; } ?>.gif" id="redo" />
                <div id="enviando" style="display: none;"><span id="momentito"><?=TXT_REZ_AGAIN;?></span></div>
            </div>
        </div>
    </div>
    </form>
    
    <div id="share">   
         <h2><?=TXT_TEMP_PLACE;?></h2>
        <div class="ctninput"><div class="codex">URL:</div><div class="inputshare"><input id="CTEMP" value="<?=$URLrdn;?>" /></div></div>
    </div>
<? } // IF 4 ?>
<? if ($modo==5) { ?>
<div id="contenido-statico">
<h1 id="titular"><?=$h1?></h1>
<? if ($page=='400' || $page=='401' || $page=='403' || $page=='404' || $page=='500' || $page=='up' || $page=='up/temp' || $page=='up/working' || $page=='images'|| $page=='generico' || $page=='tos' || $page=='contact' || $page=='tools' || $page=='water' || $page=='reg' ) { ?>

    <?=$explained?>

<? } 
} ?>

<? if ($modo==2 || $modo==3) { // EL IF 2-3
    if (isset($v)) { 
        $quehace = TXT_SEEING;
    } else {
        if ($red==1) {
            $retxt = ' '.TXT_AND_RESIZE;
        }
        $quehace = TXT_DID.$retxt;
    }
    $mensaje = $quehace.' <a href="'.PATH_SCRIPT.DIR_IM.$folhost.$name.'">'.$name.'</a> ('.$tamano_kb.' KB - '.$ancho.'x'.$alto.'px)'.$colita;

?>

<div id="subiste-viendo"><h1><?=$mensaje?></h1>
</div>

<div id="contenido">
    <div id="tools"><div id="fullsize"<? if ($ancho<=900) { echo ' style="display: none; "'; }?>><a href="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>" title="<?=$ancho?>x<?=$alto?>"><?=FULL_SIZE;?></a></div><div id="sharethis"><a id="sharing"><?=SHARE;?></a><a id="sharing-close" style="display: none;"><?=SHARE;?></a></div></div>
    <div id="imagen"><a href="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>"><img src="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>" alt="" <? if ($ancho>=900) { echo 'width="900" '; } ?>/></a></div>

    
    <div id="share" <? if (isset($v) && $v!=='rec.php') { ?>style="display: none;"<? } ?>>

    
        <div id="mostrar_mas_enlaceview">
            <h2 id="mev"><?=SHARE_THUMB_VIEWER;?></h2>
            <div class="ctninput">
                <div class="codex">HTML:</div><div class="inputshare">
                <input tabindex="1" value="&lt;a href=&quot;<?=$URLvim?>&quot;&gt;&lt;img src=&quot;<?=$URLthm?>&quot; border=&quot;0&quot;&gt;&lt;/a&gt;" onclick="this.focus();this.select();" />
                </div>
            </div>
            <div class="ctninput">
                <div class="codex"><?=SHARE_FORUMS;?>:</div><div class="inputshare">
                <input tabindex="2" value="[url=<?=$URLvim?>][img]<?=$URLthm?>[/img][/url]" onclick="this.focus();this.select();" />
                </div>
            </div>
        </div>
        
        <div id="mostrar_directa">
            <h2 id="md"><?=SHARE_DIRECT;?></h2>
            <div class="ctninput">
                <div class="codex"><a href="<?=$URLvim?>" target="_blank"><?=SHARE_VIEWER;?>:</a></div>
                <div class="inputshare"><input tabindex="3" value="<?=$URLvim?>" onclick="this.focus();this.select();" /></div>
            </div>
            <div class="ctninput">
                <div class="codex"><?=SHARE_FORUMS;?>:</div>
                <div class="inputshare"><input tabindex="4" value="[img]<?=$URLimg?>[/img]" onclick="this.focus();this.select();" /></div>
            </div>
            <div class="ctninput">
                <div class="codex"><a href="<?=$URLimg?>" target="_blank">URL:</a></div>
                <div class="inputshare"><input tabindex="5"value="<?=$URLimg?>" onclick="this.focus();this.select();" /></div>
            </div>
            <? if (isset($ShortURL) && !empty($ShortURL)) { ?>
            <div class="ctninput">
                <div class="codex"><a href="<?=$ShortURL?>" target="_blank"><?=$tiny_service;?>:</a></div>
                <div class="inputshare"><input id="tinyurl" tabindex="6" value="<?=$ShortURL?>" onclick="this.focus();this.select();" /></div>
            </div>
            <? } ?>
        </div>
  


        <div id="mostrar_social">
        <h2 id="mes"></h2>
        <div class="ctninput-social">
            <div class="codex"><?=SHARE_NETWORKS;?>:</div>
            <a href="http://del.icio.us/post?url=<?=$URLshr?>" id="delicious" target="_blank"></a>
            <a href="http://www.facebook.com/share.php?u=<?=$URLshr?>" id="facebook" target="_blank"></a>
            <a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=<?=$URLshr?>" id="google" target="_blank"></a>
            <a href="http://www.tumblr.com/share?v=3&amp;u=<?=$eu_img?>" id="tumblr" target="_blank"></a>
            <a href="http://vi.sualize.us/post/?popup=1&amp;address=<?=$eu_img?>&amp;referenceURL=<?=URL_SCRIPT;?>" id="visualizeus" target="_blank"></a>
            <div id="quecosa">
                <span id="d-delicious" style="display: none;">del.icio.us</span>
                <span id="d-facebook" style="display: none;">facebook</span>
                <span id="d-google" style="display: none;">Google Bookmarks</span>
                <span id="d-tumblr" style="display: none;">tumblr</span>
                <span id="d-visualizeus" style="display: none;">vi.sualize.us</span>
            </div>
        </div>
        </div>
    </div>
<? } ?>

</div>


</td>
        <td background="site-img/template/repeat_right.png" width="16" height="345" alt="">
            </td>
        <td>
            <img src="site-img/template/spacer.gif" width="1" height="345" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2" background="site-img/template/repeat_bottom.png" width="666" height="21" alt="">
            </td>
        <td rowspan="2">
            <img src="site-img/template/index_08.png" width="16" height="21" alt=""></td>
        <td>
            <img src="site-img/template/spacer.gif" width="1" height="4" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="site-img/template/index_09.png" width="14" height="17" alt=""></td>
        <td>
            <img src="site-img/template/spacer.gif" width="1" height="17" alt=""></td>
    </tr>
</table>
<BR>
<BR>
</body>
</html>
 
stop calling the rer function.
Jason, they are rotating..they are just being shuffled.
see the very first function of the code.
Put a comment here:
PHP:
<? rer();?>
 
Status
Not open for further replies.

About the author

MirandaWright's
Distinguished Member · Joined
3,248
Messages
28
Reactions
48
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom