Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/07/2014, 12:17
Avatar de Patriarka
Patriarka
 
Fecha de Ingreso: enero-2011
Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 13 años, 3 meses
Puntos: 288
Respuesta: Como hacer que un objeto sea accesible desde una función sin alterar la fu

aca tenes que ponerte en modo hacker jajaja

Código PHP:
Ver original
  1. <?php
  2. if (function_exists('tolog')) {
  3. function tolog($what){
  4.     global $con;
  5.     $whoi=$_SESSION['b_id'];
  6.     $wher=$_SERVER['REMOTE_ADDR'];
  7.     $con->query("INSERT INTO m_log VALUES('','$whoi','$wher','$what',NOW())");
  8. }
  9. }
  10. ?>