elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... 33
11  Programación / Desarrollo Web / Re: [?][php][mysql]Enviar consulta en un formulario en: 12 Diciembre 2012, 02:36 am
Podrías explicarte mejor.
12  Programación / PHP / Re: ayuda para una condición "IF" en: 12 Diciembre 2012, 02:07 am
Código
  1. <?php
  2. /**
  3.  *
  4.  * Author: ArmyZ Rdz
  5.  * Comaptible with: MyBB 1.4
  6.  * Website: http://www.generalzone.net
  7.  * License: GNU/GPL
  8.  * Utilicelo a su propio riesgo
  9.  * Disfrutalo =D
  10.  *
  11.  */
  12.  
  13. if(!defined('IN_MYBB'))
  14. {
  15. die();
  16. }
  17. $plugins->add_hook("global_start", "imgflotante");
  18. function imgflotante_info(){
  19. return array(
  20. "name" => "Imagen Flotante Para Invitados",
  21. "description" => "Este plugin muestra una imagen flotante para los invitados",
  22. "website" => "http://www.generalzone.net",
  23. "author" => "ArmyZ Rodriguez",
  24. "authorsite" => "http://www.generalzone.net",
  25. "version" => "1.2.1",
  26. "compatibility" => "14*,16*",
  27. "guid" => ""
  28. );
  29. }
  30. function imgflotante_activate(){
  31.  global $db;
  32.  
  33. include MYBB_ROOT."/inc/adminfunctions_templates.php";
  34. find_replace_templatesets("header", "#".preg_quote('{$bannedwarning}')."#i", '{\$bannedwarning}{\$imgflotante}');
  35.  
  36. $imgflotante_group = array(
  37. 'gid' => 'NULL',
  38. 'name' => 'imgflotante',
  39. 'title' => 'Imagen flotante para invitados',
  40. 'description' => 'Settings For The imgflotante Plugin',
  41. 'disporder' => "1",
  42. 'isdefault' => 'no',
  43. );
  44. $db->insert_query('settinggroups', $imgflotante_group);
  45. $gid = $db->insert_id();
  46.  
  47. $imgflotante_setting_1 = array(
  48. 'sid' => 'NULL',
  49. 'name' => 'enabled_imgflotante',
  50. 'title' => 'Activado/Desactivado',
  51. 'description' => '',
  52. 'optionscode' => 'yesno',
  53. 'value' => '1',
  54. 'disporder' => 1,
  55. 'gid' => intval($gid),
  56. );
  57. $db->insert_query('settings', $imgflotante_setting_1);
  58.  
  59. $imgflotante_setting_2 = array(
  60. 'sid' => 'NULL',
  61. 'name' => 'imgflotante_location',
  62. 'title' => 'Arriva o Abajo?',
  63. 'description' => 'puedes poner "fromtop" para colocar la imagen arriva o "frombottom" para colocarla abajo',
  64. 'optionscode' => 'text',
  65. 'value' => 'fromtop',
  66. 'disporder' => 2,
  67. 'gid' => intval($gid),
  68. );
  69. $db->insert_query('settings', $imgflotante_setting_2);
  70.  
  71. $imgflotante_setting_3 = array(
  72. 'sid' => 'NULL',
  73. 'name' => 'imgflotante_img',
  74. 'title' => 'Ruta de la Imagen',
  75. 'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados...',
  76. 'optionscode' => 'text',
  77. 'value' => 'images/ifid.png',
  78. 'disporder' => 3,
  79. 'gid' => intval($gid),
  80. );
  81. $db->insert_query('settings', $imgflotante_setting_3);
  82.  
  83. $imgflotante_setting_4 = array(
  84. 'sid' => 'NULL',
  85. 'name' => 'imgflotante_img_close',
  86. 'title' => 'Ruta de la Imagen para cerrar',
  87. 'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados donde se cerrara...',
  88. 'optionscode' => 'text',
  89. 'value' => 'images/ifii.png',
  90. 'disporder' => 4,
  91. 'gid' => intval($gid),
  92. );
  93. $db->insert_query('settings', $imgflotante_setting_4);
  94.  
  95.  
  96. rebuild_settings();
  97. }
  98. function imgflotante_deactivate(){
  99.  global $db;
  100.  
  101. include MYBB_ROOT."/inc/adminfunctions_templates.php";
  102. find_replace_templatesets("header", "#".preg_quote('{$imgflotante}')."#i", '', 0);
  103.  
  104. $db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name IN ('imgflotante_location','enabled_imgflotante','imgflotante_img','imgflotante_img_close')");
  105. $db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='imgflotante'");
  106. rebuild_settings();
  107.  
  108. }
  109. function imgflotante()
  110. {
  111. global $mybb;
  112. if ($mybb->settings['enabled_imgflotante'] == 1)
  113.    {
  114. if($mybb->user['usergroup']==1)
  115.  
  116. {
  117.                $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
  118.                if($url!='AQUI PONES LA URL DEL REGISTRO EJ: HTTP://WWW.TUWEB.COM/REGISTRO'){
  119.  
  120. global $templates,$settings,$imgflotante;
  121. $imgflotante = '<script type="text/javascript" src="jscripts/imgflotante.js?ver=1400"></script>
  122. <script type="text/javascript">
  123. var verticalpos = "'.$mybb->settings['imgflotante_location'].'";
  124. </script>
  125. <style type="text/css">#topbar{position:absolute;border: 0px solid white;padding: 5px;background-color: transparent;width: 450px;visibility: hidden;z-index: 400;}</style><div id="topbar"><a href="'.$mybb->settings['bburl'].'/member.php?action=register"><img src="'.$mybb->settings['imgflotante_img'].'"" alt="Registrarte!" border="0" /></a><a href="#" onclick="closebar(); return false"><img src="'.$mybb->settings['imgflotante_img_close'].'" alt="Cerrar" border="0" /></a></div>';
  126.                        }
  127. }
  128.    }
  129.  
  130. }
  131. ?>
  132.  
En la última función.
13  Programación / PHP / Re: error en php en: 8 Diciembre 2012, 01:12 am
Código
  1.  
  2. $rg=mysql_query(" SELECT * FROM ventasunidad",$conexion) or die("Problemas en el select:".mysql_error());
  3.  
  4.  
  5. while($rs=mysql_fetch_array($rg))
  6. {
  7.  
  8. $nombre=$rs['Nombre'];
  9. $cantidadr=$rs['cantidaduni'];
  10.  
  11.  
  12. $rt=mysql_query("select * from articulos where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());
  13.  
  14. if ($rg=mysql_fetch_array($rt))
  15. {
  16. $existenciat=$rg['existencia']-$cantidadr;
  17. }
  18.  
  19. $registros=mysql_query("update articulos set existencia=' .$existenciat.' where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());
  20.  
  21. }
Prueba así a ver..
14  Programación / PHP / Re: Script para Clasificados con Subdominios en: 8 Diciembre 2012, 00:59 am
Xhushito, aver... mira, tu cuando entren a mexico.dominio.com , al configurar el htaccess, saca los datos de dominio.com/idioma.php?id=mexico

Por lo tanto tu haces.

HTACCESS:
Código:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/idioma\.php
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.dominio\.com
RewriteRule .* /idioma.php?id=%1 [L]

PHP:
Código
  1. <?
  2. $idioma=$_GET['id'];
  3. $query=mysql_query('SELECT * FROM anuncios WHERE idioma="'.$idioma.'"');
  4. ?>

Pruebalo y comenta... no aseguro que el HTACCESS funcione al 100%.
15  Programación / PHP / Re: Script para Clasificados con Subdominios en: 2 Diciembre 2012, 01:25 am
Lo que tienes que hacer es hacer una geolocalización del visitante y una vez obtienes su procedencia, lo rediriges al subdominio que quieras.
16  Informática / Hardware / Re: ¿Porque se apaga? en: 16 Agosto 2012, 23:46 pm
Aver cuando se apaga la pantalla es como si se apagara el PC, pero solo la pantalla y lo tengo que apagar desde el boton de detrás... por lo tanto no me da tiempo ni aver las temperaturas que saca con el juego ni nada :S
17  Informática / Hardware / ¿Porque se apaga? en: 16 Agosto 2012, 22:50 pm
Buenas, mirad, de repente hace unos días cuando intengo jugar a algun juego ej ( San Andreas, League of Legends, Fligh Simulator X ) cuando empieza el juego ( cuando la imagen ocupa toda la pantalla ) al segundo se me apaga la pantalla , es como si se apagara el PC pero con la torre enchufada bueno, mirando por internet vi que son problema de calentamiento, pues me baje el speedfan y me da esto:



Podemos ver que el CPU sale algo caliente, pero le puse un ventilador algo más potente ( se lo puse a lo xapuza con la torre tumbada ) y bajo 3 o 4 grados, es decir estaba en 48º y ninguna temperatura con el signo de quemando, vale así intenté entrar a un juego y me pasó lo mismo así que puse el ventilador de serie.

¿Que ocurre? Entré a la bios y puse el apagado de emergencia a 75º y cuando entro a un juego la pc no esta a 75º y se apaga igual, por lo tanto, cual es el problema? Gracias... :)
18  Programación / Desarrollo Web / Re: para poner una pagina HTML con contraseña en: 22 Octubre 2011, 00:44 am
Un ejemplo... algo básico...

Código
  1. <?
  2. $clave="TU CONTRASEÑA";
  3. if($_GET["password"]!=$clave){
  4. echo '<form method=get name=validacion>Introduzca la clave: <input type="text" name="password"/><input type=submit value="Enviar" name=validar/></form>';
  5. }else{
  6.  
  7. ?>
  8. TU PAGINA
  9. <? } ?>
19  Foros Generales / Noticias / Re: ¿Mato o no mato al oso? Tú eliges en: 8 Septiembre 2010, 01:52 am
Lo primero que se me ocurrió poner: "fuck" mirad lo que sale jajaj
20  Seguridad Informática / Seguridad / Re: Virus,¿Cómo eliminarlo? en: 6 Agosto 2010, 00:40 am
Código:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect /usepmtimer
C:\wubildr.mbr = "Ubuntu"
Páginas: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... 33
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines