
mam nastepujacy oryginalny kod
Kod
while($row = mysql_fetch_array($get_uploads)) {
$item_id = $row[id];
$tracker = $row[tracker];
$originalfilename = $row[originalfilename];
$extension = pathinfo($originalfilename);
$extension = strtolower($extension[extension]);
$this_code = "";
$this_code .= '<table width="695" cellpadding="0" cellspacing="0"><form name="codeform'.$i.'"><tr><td width="100%" valign="top">';
$this_code .= "<b>Forum code:</b> (<a href=\"javascript:copyit('codeform".$i.".code1');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code1' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code1');\">[url=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\" title=\"download file from ".$site_name."\"]http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."[/url]</textarea><br><br>";
$this_code .= "<b>Share this file with friends:</b> (<a href=\"javascript:copyit('codeform".$i.".code2');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code2' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code2');\">http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."</textarea><br><br>";
$this_code .= "<b>HTML code for your websites:</b> (<a href=\"javascript:copyit('codeform".$i.".code4');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code4' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code4');\"><a href=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\">download ".str_replace(array('"', '<', '>'), '', strip_tags($originalfilename))."</a></textarea><br><br>";
if($show_delete_code) {
$this_code .= "<b>Delete File Link:</b><br>Use this link to remove your file at any time.<br>";
$this_code .= " - <a href=".$site_url."/delete.html?d=".$tracker.">http://".$site_url."/delete.html?d=".$tracker."</a><br><br>";
}
if($show_pass_option) {
$this_code .= "<iframe src='set-pass.php?im=".$item_id."' frameborder='no' scrolling='no' width='400' allowtransparency='true'></iframe>";
}
$this_code .= '</td></tr></form></table>';
$item_id = $row[id];
$tracker = $row[tracker];
$originalfilename = $row[originalfilename];
$extension = pathinfo($originalfilename);
$extension = strtolower($extension[extension]);
$this_code = "";
$this_code .= '<table width="695" cellpadding="0" cellspacing="0"><form name="codeform'.$i.'"><tr><td width="100%" valign="top">';
$this_code .= "<b>Forum code:</b> (<a href=\"javascript:copyit('codeform".$i.".code1');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code1' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code1');\">[url=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\" title=\"download file from ".$site_name."\"]http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."[/url]</textarea><br><br>";
$this_code .= "<b>Share this file with friends:</b> (<a href=\"javascript:copyit('codeform".$i.".code2');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code2' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code2');\">http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."</textarea><br><br>";
$this_code .= "<b>HTML code for your websites:</b> (<a href=\"javascript:copyit('codeform".$i.".code4');\">copy code</a>)<br>";
$this_code .= "<textarea readonly name='code4' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code4');\"><a href=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\">download ".str_replace(array('"', '<', '>'), '', strip_tags($originalfilename))."</a></textarea><br><br>";
if($show_delete_code) {
$this_code .= "<b>Delete File Link:</b><br>Use this link to remove your file at any time.<br>";
$this_code .= " - <a href=".$site_url."/delete.html?d=".$tracker.">http://".$site_url."/delete.html?d=".$tracker."</a><br><br>";
}
if($show_pass_option) {
$this_code .= "<iframe src='set-pass.php?im=".$item_id."' frameborder='no' scrolling='no' width='400' allowtransparency='true'></iframe>";
}
$this_code .= '</td></tr></form></table>';
a to jest kod przerobiony przezemnie...
Kod
while($row = mysql_fetch_array($get_uploads)) {
$item_id = $row[id];
$tracker = $row[tracker];
$originalfilename = $row[originalfilename];
$extension = pathinfo($originalfilename);
$extension = strtolower($extension[extension]);
$this_code = "";
$this_code .= '<table width="695" cellpadding="0" cellspacing="0"><form name="codeform'.$i.'"><tr><td width="100%" valign="top">';
$this_code .= "<b>Kod na forum</b> <a href=\"javascript:copyit('codeform".$i.".code1');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code1' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code1');\">[url=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\" title=\"download file from ".$site_name."\"]http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."[/url]</textarea><br><br>";
$this_code .= "<b>Link dla przyjaciół</b> (<a href=\"javascript:copyit('codeform".$i.".code2');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code2' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code2');\">http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."</textarea><br><br>";
$this_code .= "<b>Kod HTML na Twoj± stronę</b> (<a href=\"javascript:copyit('codeform".$i.".code3');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code3' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code3');\"><a href=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\">download ".str_replace(array('"', '<', '>'), '', strip_tags($originalfilename))."</a></textarea><br><br>";
if($show_delete_code) {
$this_code .= "<b>Link kasuj±cy plik</b> (<a href=\"javascript:copyit('codeform".$i.".code4');\">Kopiuj kod</a>) - Użyj ten link w każdym momencie żeby usun±ć plik ";
$this_code .= "<textarea readonly name='code4' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code4');\">http://".$site_url."/delete.html?d=".$tracker."</textarea><br><br>";
}
if($show_pass_option) {
$this_code .= "<iframe src='set-pass.php?im=".$item_id."' frameborder='no' scrolling='no' width='400' allowtransparency='true'></iframe>";
}
$this_code .= '</td></tr></form></table>';
$item_id = $row[id];
$tracker = $row[tracker];
$originalfilename = $row[originalfilename];
$extension = pathinfo($originalfilename);
$extension = strtolower($extension[extension]);
$this_code = "";
$this_code .= '<table width="695" cellpadding="0" cellspacing="0"><form name="codeform'.$i.'"><tr><td width="100%" valign="top">';
$this_code .= "<b>Kod na forum</b> <a href=\"javascript:copyit('codeform".$i.".code1');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code1' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code1');\">[url=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\" title=\"download file from ".$site_name."\"]http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."[/url]</textarea><br><br>";
$this_code .= "<b>Link dla przyjaciół</b> (<a href=\"javascript:copyit('codeform".$i.".code2');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code2' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code2');\">http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."</textarea><br><br>";
$this_code .= "<b>Kod HTML na Twoj± stronę</b> (<a href=\"javascript:copyit('codeform".$i.".code3');\">Kopiuj kod</a>)<br>";
$this_code .= "<textarea readonly name='code3' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code3');\"><a href=\"http://".$site_url."/showfile-".$item_id."/".createhtmlname($originalfilename).".".$extension."\">download ".str_replace(array('"', '<', '>'), '', strip_tags($originalfilename))."</a></textarea><br><br>";
if($show_delete_code) {
$this_code .= "<b>Link kasuj±cy plik</b> (<a href=\"javascript:copyit('codeform".$i.".code4');\">Kopiuj kod</a>) - Użyj ten link w każdym momencie żeby usun±ć plik ";
$this_code .= "<textarea readonly name='code4' style='width:550px;height:40px;font-size:11px;color:#999999;' onClick=\"javascript:copyit('codeform".$i.".code4');\">http://".$site_url."/delete.html?d=".$tracker."</textarea><br><br>";
}
if($show_pass_option) {
$this_code .= "<iframe src='set-pass.php?im=".$item_id."' frameborder='no' scrolling='no' width='400' allowtransparency='true'></iframe>";
}
$this_code .= '</td></tr></form></table>';
chodzi oto że w pierwszym przypadku <oryginalny kod> skrypt powinien zaznaczac i kopiowac... nieststy przyz mienionym kodzi skrypt zaznacza ale nie kopiuje Prosze o pomoc.