Jump to content


wildbrn

Member Since 07/04/2004
Offline Last Active 26/03/2006, 20:44
-----

Topics I've Started

Passar Script Para Register_global Off

05/03/2006, 22:51

Olá galera,

to com esse scriptrodando com register_global on e quando mudo no servidor para off nao funciona, alguem poderia me ajudar

<html>
<head>
<style type="text/css" media="all">
@import url("css/musicas.css");
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<?
$anime = $_GET['anime'];
include("conn.php");
$res = DBcadastro_connect();
if (!$res) {
  echo("Erro de conexão ".mysql_error()."\n");
  }

else    {
// Seleciona os cards por colecao em ordem alfabetica
	$sql = " select * from mp3 where anime = '$anime' order by data desc, titulo asc  "; 
	$sql_result = mysql_db_query("BANCO","$sql",$res) or die("Impossível consultar registros. ".mysql_error());
	$total = mysql_num_rows($sql_result);
	
if ($total!=0) {	

?>

<body bgcolor="#FFFFFF" link="a3602c" vlink="a3602c" alink="a3602c" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  
<br>
<table width="470" border="0" cellpadding="0" cellspacing="1">
  <tr bgcolor="#B56931"> 
    <td width="140" bgcolor="#B56931"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Titulo</b></font></div></td>
    <td width="90" bgcolor="#B56931"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Autor</b></font></div></td>
    <td width="62"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Tamanho</b></font></div></td>
    <td width="49"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Tempo</b></font></div></td>
    <td width="53"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Cliques</b></font></div></td>
    <td width="69"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="fcca8f"><b>Download</b></font></div></td>
  </tr>
  <?   while ($valor = mysql_fetch_array($sql_result)){ ?>
  <?
	$data_banco = $valor['data'];
	$data_atual = date("Y").'-'.date("m").'-'.date("d");
	$basedata = strtotime($data_banco);
	$data1 = strtotime ("+ 3 days" , $basedata);
	$vencimento = date("Y-m-d", $data1);
?>
  <tr bgcolor="<? echo ($vencimento >= $data_atual ? "fcca8f" : "fde7d1");?>"> 
    <td width="140" height="2"> <div align="center"><b><font face="Arial, Helvetica, sans-serif" size="2" color="a3602c"> 
        <?echo $valor['titulo'];?></font></b></div></td>
    <td width="90" height="2"> <div align="center"><b><font color="a3602c"> <?echo $valor['autor'];?></font></b></div></td>
    <td width="62" height="2"> <div align="center"><b><font face="Arial, Helvetica, sans-serif" size="2" color="a3602c"> 
        <?echo $valor['tamanho'];?></font></b></div></td>
    <td width="49" height="2"> <div align="center"><b><font face="Arial, Helvetica, sans-serif" size="2" color="a3602c"> 
        <?echo $valor['tempo'];?></font></b></div></td>
    <td width="53" height="2"> <div align="center"><b><font face="Arial, Helvetica, sans-serif" size="2" color="a3602c"> 
        <?echo $valor['downloads'];?></font></b></div></td>
    <td width="69" height="2"> <div align="center"><b><font face="Arial, Helvetica, sans-serif" size="2" color="a3602c"><a href=download.php?&idcliques=<?echo $valor['id'];?>>Baixe!</a></font></b></div></td>
  </tr>
  <? }//---End While ?>
</table>
<?  
  }//---End if	
else {
	echo "<a href=index.php>Voltar</a>";
} 	 
}
?>
</body>
</html>

Quando coloco off e clico no link "BAIXE" aparece essa mensagem

isso Impossível consultar registros. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Usuario Root No Ssh

20/12/2005, 09:21

olá pessoal, editando o arquivo /etc/passwd editei o usuario root para oot, agora nao entra com a senha, o q fazer?

ps: sei q fiz m...

Ajuda Com 500 Internal Error No Mod Zoom Do Mamboo

16/12/2005, 14:16

Olá pessoal,

estou migrando o joomla de outro servidor e está dando esse erro quanvo vou mostrar as fotos em tamanha real, usando o modulo zoom.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@xxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

vi aqui no forum pra alterar o configuratio.php o Sel para 0, porem o mesmo está e o .httpd está em branco

$mosConfig_sef = "0";

como resolver?

Banner No Phpadsnew

25/11/2005, 06:28

Estou querendo disponibilisar banner para que seja acrescentado em um sistema de banner,como o phpadsnew

a ideia é eu passar www.site.com/banner.gif?id5 , sendo q o 5 é o anunciante (nao sei seé com ?, só ex)

entao o parceiro adcioona esse banner com o id deleno seu sitema sendo assim eu tbm teria estatisticas da amostragem.

já vi tbm qdo é clicado nesse banner, aparece o site do banner www.site.com/parceiro.php?5, nessa hora que a estatistica é contada.

queria que me ajudassem a fazer isso no phpadsnew.

[]'s

Vliblioteca Para Exibir Grafico?

22/11/2005, 16:54

ola pessoal,

estou com um scrip para exibir gráficos em php, queria saber qualç a biblioteca ou o q tenho q ativar para ser mostrado.

um dos scripts

<?php
/*=======================================================================
// File:  JPGRAPH_CANVAS.PHP
// Description:	Canvas drawing extension for JpGraph
// Created:  2001-01-08
// Author:	Johan Persson (johanp@aditus.nu)
// Ver:  $Id: jpgraph_canvas.php,v 1.10 2002/08/25 04:37:44 aditus Exp $
//
// License:	This code is released under QPL
// Copyright (C) 2001,2002 Johan Persson
//========================================================================
*/

//===================================================
// CLASS CanvasGraph
// Description: Creates a simple canvas graph which
// might be used together with the basic Image drawing
// primitives. Useful to auickoly produce some arbitrary
// graphic which benefits from all the functionality in the
// graph liek caching for example. 
//===================================================
class CanvasGraph extends Graph {
//---------------
// CONSTRUCTOR
    function CanvasGraph($aWidth=300,$aHeight=200,$aCachedName="",$timeout=0,$inline=1) {
	$this->Graph($aWidth,$aHeight,$aCachedName,$timeout,$inline);
    }

//---------------
// PUBLIC METHODS	

    function InitFrame() {
	$this->StrokePlotArea();
    }

    // Method description
    function Stroke($aStrokeFileName="") {
	if( $this->texts != null ) {
     for($i=0; $i<count($this->texts); ++$i) {
  $this->texts[$i]->Stroke($this->img);
     }
	}    
	// Stream the generated picture   	 
	$this->cache->PutAndStream($this->img,$this->cache_name,$this->inline,$aStrokeFileName);	
    }
} // Class
/* EOF */
?>

IPB Skin By Virteq