Sistema De Downloads
#1
Posted 21/03/2004, 10:52
(ATENÇÃO -> NÃO VOL VIRAR CONCORRENTE DO WM OU PLUGMASTERS QUERO APENAS PARA QUE EU POSSA MODIFICALO E MONTAR UM MAIS SIMPLES PARA DONWLOADS DE MP3, AVI, MIDI ETC...)
Obrigado!
Fã de PHP!
---------------------------------------------------------------------
Visite: www.paintsoft.com.br
---------------------------------------------------------------------
#2
Posted 21/03/2004, 10:55
#3
Posted 21/03/2004, 11:10
Fã de PHP!
---------------------------------------------------------------------
Visite: www.paintsoft.com.br
---------------------------------------------------------------------
#4 felipensp
Posted 21/03/2004, 11:24
vai montando com o post que o Klaus passou ae...
#5 thiagorsl
Posted 21/03/2004, 11:58
#6
Posted 21/03/2004, 13:02
http://forum.wmonlin...showtopic=52611
flw !!!
PALMEIRAS - Primeiro campeão do mundo em 1951
#7
Posted 21/03/2004, 13:21
Eh sohmente iss que queres?
Em cinco minutos estara pronto pra satisfazer fossa vontade!!!
Ahh.... rapaiz....num eh assim que as coisas funcionam naum vei!!! presta atencao!!!
Tutoriais, código colaborativo (pastebin), curso de PHP, artigos e etc.
#8
Posted 17/04/2004, 20:37
Tenho este arquivo, o nome dele é top.php, quando "puxo" por ele, ele dá o seguinte erro:<?php
include($path."cfg.php");
function LoadTemplate() {
global $m_templates;
$m_templates["table"] = join("", file($path."template/table.tpl"));
$m_templates["table"] = addslashes($m_templates["table"]);
$m_templates["table_row"] = join("", file($path."template/table_row.tpl"));
$m_templates["table_row"] = addslashes($m_templates["table_row"]);
}
function getTemplate($name) {
global $m_templates;
$template = $m_templates[$name];
$template = str_replace("\\'", "'", $template);
return $template;
}
$sort = $HTTP_GET_VARS["sort"];
$num = $HTTP_GET_VARS["num"];
$type = $HTTP_GET_VARS["type"];
$gr = $HTTP_GET_VARS["gr"];
$js = $HTTP_GET_VARS["js"];
if(!isset($num)) $num = 10;
if(!isset($sort) || ($sort != "dec" && $sort != "inc")) $sort = "dec";
if(!isset($type) || ($type != "total" && $sort != "today")) $type = "total";
if(!isset($gr)) $gr = -1;
unset($counter);
unset($rows);
$base = @file($path.$datafile); $cnt=sizeof($base);
$row = 0;
$counter = array();
for($i=1;$i<$cnt;$i++) {
list($agr,$id,$count,$url,$name)=explode("|", $base[$i]);
if($agr == $gr || $gr == -1)
{
$counter[$base[$i]] = $count;
$row++;
}
}
LoadTemplate();
if ($sort == "inc") asort($counter);
else arsort($counter);
reset($counter);
if($row > $num) $row = $num;
for($i=0;$i<$row;$i++) {
$key = key($counter);
list($gr,$id,$count,$url,$name)=explode("|", $key);
eval("\$rows .= \"".getTemplate("table_row")."\";");
next($counter);
}
eval("\$output = \"".getTemplate("table")."\";");
if($js) {
$output = str_replace("\r", "\\", $output);
// $output = str_replace("\\", "\\\\", $output);
// $output = str_replace("\n", "\\\n", $output);
$output = str_replace("'", "\\'", $output);
$output = str_replace("/'", "\\'", $output);
$output = str_replace('/"', '\\"', $output);
$output = "document.write('".$output."');";
}
echo $output;
?>
Warning: file(): Unable to access template/table.tpl in /home/webcindario/scripts/fclick/top.php on line 8 Warning: file(template/table.tpl): failed to open stream: No such file or directory in /home/webcindario/scripts/fclick/top.php on line 8 Warning: join(): Bad arguments. in /home/webcindario/scripts/fclick/top.php on line 8 Warning: file(): Unable to access template/table_row.tpl in /home/webcindario/scripts/fclick/top.php on line 11 Warning: file(template/table_row.tpl): failed to open stream: No such file or directory in /home/webcindario/scripts/fclick/top.php on line 11 Warning: join(): Bad arguments. in /home/webcindario/scripts/fclick/top.php on line 11Alguem sabe pk sera?
#9 thiagorsl
Posted 17/04/2004, 20:40
-table.tpl
-table_row.tpl
Se naõ existir veja a pasta template de onde baixou o arquivo e mande
qualquer coisa portuga pode postar
#10
Posted 17/04/2004, 20:45
Nao sei...
#11
Posted 17/04/2004, 20:52
#12
Posted 17/04/2004, 21:00
/fclick/top.php
/fclick/template/
/fclick/template/table.tpl
/fclick/template/table_row.tpl
#13 thalesalan
Posted 18/04/2004, 07:20
Mas você configurou eles?Está!
/fclick/top.php
/fclick/template/
/fclick/template/table.tpl
/fclick/template/table_row.tpl
#14
Posted 18/04/2004, 07:51
Warning: main(): URL file-access is disabled in the server configuration in /home/webcindario/scripts/index1.php on line 181 Warning: main(http://scripts.webcindario.com/fclick/top.php): failed to open stream: no suitable wrapper could be found in /home/webcindario/scripts/index1.php on line 181 Warning: main(): Failed opening 'http://scripts.webcindario.com/fclick/top.php' for inclusion (include_path='.') in /home/webcindario/scripts/index1.php on line 181O metodo de exibiçao é este:
<?php
$num = "5";
$sort = "dec";
$gr = "1";
$path = "fclick/";
include($path."top.php");
?>
Mas agora meti:
<?php
$num = "5";
$sort = "dec";
$gr = "1";
$path = "http://scripts.webci...o.com/fclick/";
include($path."top.php");
?>
E dá o erro acima referido!
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)