Hola man Gracias por responder pero nada, ahora ndad puedo subir pucha, que hago
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCitar<?php
include("config.php");
$tag=$_POST["tag"];
$SIZE="1000000";
$UPLOAD_DIR ="../userfotos/";
if (is_uploaded_file($archivo)) {
if ( $archivo_size > $SIZE ) {
echo "<b><CENTER>El Servidor acepta sólo archivos de tamaño menor que $SIZE.";
echo " Ingrese de Nuevo su Aviso</CENTER></b>";
exit;
}
$nombreaponer=strtolower($archivo_name);
$alternativo="";
while (@fopen($UPLOAD_DIR.$alternativo.$nombreaponer,"r"))
{
$alternativo++;
}
$nombreaponer=$alternativo.$nombreaponer;
copy($archivo,$UPLOAD_DIR.$nombreaponer);
unlink($archivo);
$url_completa ="$UPLOAD_DIR$nombreaponer";
$ingresar=mysql_query("insert into fotos(titulo,Comentario,url_,tag,pass_delete,categria,url_completa,data,user) values ('$titulo','$cuerpo','$nombreaponer','$tag','$pass_delete','$nombre','$url_completa','$fecha','$quien')",$database_server);
echo "se agrego el archivo ";
echo"<b>";
echo"$nombreaponer";
echo"<br>";
echo"<p>el codigo de delete es</p>";
echo"<b>";
echo "$pass_delete";
echo"<br>";
echo"<b>";
echo '<p><a href="./formulario_upload.php">Subir mas Fotos</a></p>';
} else {
echo "no se puedo agragar su archivo";
//$ingresar=mysql_query("insert into tabla(titulo,cuerpo) values ('$titulo','$cuerpo')",$link);
}
?>
Citartd.td560arriba{background-image: url(../template/M-Flower/modulo650/h1.jpg);background-repeat: no-repeat;background-color:#FFCC00;width:200px;height:77px;}
Cita de: дٳŦ٭ en 1 Diciembre 2008, 16:01 PM
if (!extension_loaded('curl') OR !function_exists('curl_init'))
Fijate que la extensión curl no tenga problemas, corre un phpinfo pa ver si la tienes. Es lo único que le veo.
Suerte
Cita de: дٳŦ٭ en 29 Noviembre 2008, 22:55 PM
mmm[Sat Nov 29 13:31:48 2008] [error] [client 190.166.118.89] SoftException in Application.cpp:252: File "/home/mixzoner/public_html/OpenInviter/postinstall.php" is writeable by group, referer: http://foro.elhacker.net/php/internal_server_error_postinstallphp-t236736.0.html
Permisos? pero... qué es ese archivo? si es un sistema ya hecho revisa en los faqs sobre permisos, platicanos que es eso que quieres ejecutar.
Suerte
Citar<?php
set_time_limit(0);
$rewrite_config=false;
include('config.php');
function row2text($row)
{
$text='';
$flag=0;
$i=0;
foreach ($row as $var=>$val)
{
if($flag==1)
$text.=", ";
elseif($flag==2)
$text.=",\n";
$flag=1;
//Variable
if(is_numeric($var))
if($var{0}=='0')
$text.="'$var'=>";
else
{
if($var!==$i)
$text.="$var=>";
$i=$var;
}
else
$text.="'$var'=>";
$i++;
//letter
if(is_array($val))
{
$text.="array(".row2text($val).")";
$flag=2;
}
else
$text.="'$val'";
}
return($text);
}
function display_message($msg)
{
global $contents;
$contents.=$msg;
echo $msg;
}
function check_cache()
{
if (file_exists('postinstall_results.res'))
if (time()-filemtime('postinstall_results.res')<120) { echo file_get_contents('postinstall_results.res'); exit; }
}
check_cache();
$contents='';
//Check username and private key
display_message("Checking username and private key... ");
if (empty($openinviter_settings['username']) OR empty($openinviter_settings['private_key']))
{
display_message("Username or private key missing.Get your own at <a href='http://openinviter.com/register.php'>OpenInviter</a><br>\n");
exit;
}
else display_message("<b>OK</b><br>\n");
//Check PHP version
display_message("Checking PHP version... ");
if (version_compare(PHP_VERSION, '5.0.0', '<')) { display_message("<b>NOT OK</b> - OpenInviter requires PHP5, your server has PHP ".PHP_VERSION." installed");exit; }
else display_message("<b>OK</b><br>\n");
//Check support for DOMDocument
display_message("Checking DOMDocument support... ");
if (!extension_loaded('dom') OR !class_exists('DOMDocument')) { display_message("<b>NOT OK</b> - OpenInviter will not run correctly on this system.");exit; }
else display_message("<b>OK</b><br>\n");
//Check transport type
$transport='curl';
display_message("Checking transport method... ");
if (!extension_loaded('curl') OR !function_exists('curl_init'))
{
$transport='wget';
passthru("wget --version",$return_var);
if ($return_var!=0)
{
display_message("Neither <b>libcurl</b> nor <b>wget</b> is installed.<br>\nYou will not be able to use OpenInviter.");
exit;
}
else display_message("<b>wget</b> is installed. Using <b>Wget</b> to handle requests<br>\n");
}
else display_message("<b>libcurl</b> is installed. Using <b>cURL</b> to handle requests<br>\n");
if ($openinviter_settings['transport']!=$transport) { $rewrite_config=true;$openinviter_settings['transport']=$transport; }
//Check permisions
$cookie_path='/tmp';
display_message("Checking write permisions... ");
if (!is_writable("{$cookie_path}"))
{
$cookie_path = realpath(session_save_path());
if (strpos ($cookie_path, ";") !== FALSE)
$cookie_path = substr ($cookie_path, strpos ($cookie_path, ";")+1);
if (empty($cookie_path)) $cookie_path=realpath('/tmp');
if (!is_writable("{$cookie_path}"))
{
display_message("The <b>{$cookie_path}</b> folder is not writable. You will have to manually define a location for logs and temporary files in <b>config.php</b><br>\n");
exit;
}
else display_message("<b>{$cookie_path}</b> is writable. Using <b>{$cookie_path}</b> to store cookie files and logs<br>\n");
}
else display_message("<b>{$cookie_path}</b> is writable. Using <b>{$cookie_path}</b> to store cookie files and logs<br>\n");
if ($openinviter_settings['cookie_path']!=$cookie_path) { $rewrite_config=true;$openinviter_settings['cookie_path']=$cookie_path; }
//Write new config file if required
if ($rewrite_config)
{
$file_contents="<?php\n";
$file_contents.="\$openinviter_settings=array(\n".row2text($openinviter_settings).");\n";
$file_contents.="?>";
file_put_contents('config.php',$file_contents);
}
//Instantiate OpenInviter
include('openinviter.php');
$inviter=new OpenInviter();
class PostInstall extends OpenInviter_Base
{
public function login($user,$pass)
{
return;
}
public function getMyContacts()
{
return;
}
public function logout()
{
return;
}
public function checkVersion()
{
$this->init();
$res=$this->get("http://update.openinviter.com/updater/check_version.php?key={$this->settings['private_key']}");
$this->stopPlugin();
return $res;
}
public function check($url)
{
$this->init();
$res=$this->get($url);
$this->stopPlugin();
if (empty($res)) return false; else return true;
}
}
$checker=new PostInstall();
$checker->settings=$inviter->settings;
$checker->service_user='postInstall';
$checker->service_pass='postInstall';
$checker->service='postInstall';
//Check version
display_message("Checking for new versions of OpenInviter... ");
$xml=$checker->checkVersion();
libxml_use_internal_errors(true);
$parsed_xml=simplexml_load_string($xml);
libxml_use_internal_errors(false);
if (!$parsed_xml)
display_message("Could not connect to server<br>\n");
else
{
$server_version=(string)$parsed_xml;
$version=$inviter->getVersion();
if (!$inviter->checkVersion($server_version)) display_message("You are using OpenInviter <b>{$version}</b> but version <b>{$server_version}</b> is available for download - <a href='http://openinviter.com/download.php'>Download newer version</a><br>\n");
else display_message("Your OpenInviter software is up-to-date<br>\n");
}
//Check plugins
$plugins=$inviter->getPlugins();
foreach ($plugins as $type=>$dummy)
foreach ($dummy as $plugin=>$details)
{
display_message("Checking {$details['name']}... ");
if ($checker->check($details['check_url'])) display_message("<b>OK</b><br>\n"); else display_message("<b>NOT OK</b> - This plugin might not work correctly on your system<br>\n");
}
display_message("<br><b>WARNING:</b> Delete postinstall.php before running OpenInviter. Also please note that you cannot run postinstall.php again for 2 minutes.");
file_put_contents('postinstall_results.res',$contents);
?>
Cita de: дٳŦ٭ en 29 Noviembre 2008, 07:28 AM
Ese archivo que tiene? puedes ver el error log?
Citar[Sat Nov 29 14:36:59 2008] [error] [client 190.42.50.138] File does not exist: /home/mixzoner/public_html/500.shtml, referer: http://mixzoner.info/OpenInviter/la verdad no se que sinifica alguna ayuda
[Sat Nov 29 14:36:59 2008] [error] [client 190.42.50.138] SoftException in Application.cpp:252: File "/home/mixzoner/public_html/OpenInviter/postinstall.php" is writeable by group, referer: http://mixzoner.info/OpenInviter/
[Sat Nov 29 14:36:49 2008] [error] [client 190.42.50.138] File does not exist: /home/mixzoner/public_html/500.shtml
[Sat Nov 29 14:36:49 2008] [error] [client 190.42.50.138] SoftException in Application.cpp:252: File "/home/mixzoner/public_html/OpenInviter/postinstall.php" is writeable by group
[Sat Nov 29 13:31:51 2008] [error] [client 190.166.118.89] File does not exist: /home/mixzoner/public_html/404.shtml
[Sat Nov 29 13:31:51 2008] [error] [client 190.166.118.89] File does not exist: /home/mixzoner/public_html/favicon.ico
[Sat Nov 29 13:31:48 2008] [error] [client 190.166.118.89] File does not exist: /home/mixzoner/public_html/404.shtml
[Sat Nov 29 13:31:48 2008] [error] [client 190.166.118.89] File does not exist: /home/mixzoner/public_html/favicon.ico
[Sat Nov 29 13:31:48 2008] [error] [client 190.166.118.89] File does not exist: /home/mixzoner/public_html/500.shtml, referer: http://foro.elhacker.net/php/internal_server_error_postinstallphp-t236736.0.html
[Sat Nov 29 13:31:48 2008] [error] [client 190.166.118.89] SoftException in Application.cpp:252: File "/home/mixzoner/public_html/OpenInviter/postinstall.php" is writeable by group, referer: http://foro.elhacker.net/php/internal_server_error_postinstallphp-t236736.0.html
[Sat Nov 29 13:20:06 2008] [error] [client 66.249.71.57] File does not exist: /home/mixzoner/public_html/500.shtml
[Sat Nov 29 13:20:06 2008] [error] [client 66.249.71.57] SoftException in Application.cpp:252: File "/home/mixzoner/public_html/OpenInviter/postinstall.php" is writeable by group
[Sat Nov 29 13:20:06 2008] [error] [client 66.249.71.57] File does not exist: /home/mixzoner/public_html/404.shtml
[Sat Nov 29 13:20:06 2008] [error] [client 66.249.71.57] File does not exist: /home/mixzoner/public_html/robots.txt
CitarInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mixzoner.info 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.
Apache/2.0.63 Server at mixzoner.info Port 80