Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.63 KB | None | 0 0
  1. <?php
  2. class managementdb{
  3.     public function getConnection() {
  4.         $dsn = 'mysql:dbname='.Constants::dbname.';host='.Constants::dbhost.'';
  5.         $username = Constants::dbusername;
  6.         $password = Constants::dbpassword;
  7.         try {
  8.             $conn = new PDO($dsn, $username, $password, array(
  9.                 PDO::ATTR_PERSISTENT => true
  10.             ));
  11.             $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  12.         } catch (PDOException $e) {
  13.             echo "Connection failed: " . $e->getMessage();
  14.         }
  15.         return $conn;
  16.     }
  17.     public function antifurbetti($id1, $id2){
  18.        
  19.         return 0;
  20.     }
  21.    
  22.     public function get_rilevazione($id1, $id2){
  23.         $conn= $this->getConnection();
  24.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtablerivelazioni." WHERE id_from=$id1 and id_to=$id2");
  25.         $stm->execute();
  26.         $res=$stm->fetch();
  27.         $from_a_to_b = $res["res"];
  28.        
  29.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtablerivelazioni." WHERE id_from=$id2 and id_to=$id1");
  30.         $stm->execute();
  31.         $res=$stm->fetch();
  32.         $from_b_to_a = $res["res"];
  33.         if(($from_a_to_b==0)&&($from_b_to_a)==0){
  34.             $this->nuova_rivelazione($id1, $id2);
  35.             return Constants::risposta_reveal;
  36.             }
  37.         if(($from_b_to_a!=0)){ //mi voglio rivelare anche io!
  38.             return Constants::attiva_rilevazione;
  39.         }
  40.            
  41.        
  42.         return Constants::risposta_reveal2;    
  43.            
  44.     }
  45.    
  46.     public function classifica($limit){
  47.             $conn= $this->getConnection();
  48.        
  49.         $query = "select avg(voto) as MEDIA, id_votata from Votazioni group by id_votata having avg(voto) > 4 and avg(voto)<=5 order by avg(voto) DESC limit 0, $limit";
  50.         @$stm=$conn->prepare($query);
  51.         @$stm->execute();
  52.         @$res=$stm->fetchAll();
  53.         return $res;
  54.         }
  55.    
  56.         public function vota($votante, $votata, $voto){
  57.             $conn = $this->getConnection();
  58.             if($voto > 6)
  59.                     $voto = 5;
  60.             if($voto < -2)
  61.                     $voto = -2;
  62.                
  63.             $q = "insert into Votazioni values (NULL, $votante, $votata, $voto);";
  64.             $st = $conn->prepare($q);
  65.             echo $q;
  66.             $st->execute();
  67.             return 1;
  68.         }
  69.    
  70.     public function inserisci_messaggio_privato($id1, $id2, $text){
  71.         $time = time();
  72.             $conn = $this->getConnection();
  73.             $st = $conn->prepare("insert into ".Constants::prefix_db.Constants::messaggi_privati." values (NULL, :id1, :id2, :text, :time);");
  74.             $st->bindParam(":id1", $id1);          
  75.             $st->bindParam(":id2", $id2);
  76.             $st->bindParam(":text", trim($text));
  77.             $st->bindParam(":time", $time);
  78.             $st->execute();
  79.             return 1;
  80.         }
  81.        
  82.     public function interrogazione_storico($id1, $id2){
  83.             $conn = $this->getConnection();
  84.             $q = "select max(time) as res from ".Constants::prefix_db.Constants::messaggi_privati." where id1 = '".$id1."' AND id2 = '".$id2."';";
  85.             $st = $conn->prepare($q);
  86.             $st->execute();
  87.             $res=$st->fetch();
  88.             return $res["res"];
  89.         }
  90.        
  91.    
  92.         public function nuova_rivelazione($id1, $id2){
  93.             $conn = $this->getConnection();
  94.             $st = $conn->prepare("insert into ".Constants::prefix_db.Constants::dbtablerivelazioni." (id_from, id_to) values (:id1, :id2);");
  95.             $st->bindParam(":id1", $id1);          
  96.             $st->bindParam(":id2", $id2);
  97.             $st->execute();
  98.             return 1;
  99.         }
  100.        
  101.         public function elimina_rivelazione($id1, $id2){
  102.             $conn = $this->getConnection();
  103.             $st = $conn->prepare("DELETE FROM ".Constants::prefix_db.Constants::dbtablerivelazioni."  WHERE id_from = :id1 AND id_to = :id2 ");
  104.             $st->bindParam(":id1", $id1);          
  105.             $st->bindParam(":id2", $id2);
  106.             $st->execute();
  107.            
  108.             $st = $conn->prepare("DELETE FROM ".Constants::prefix_db.Constants::dbtablerivelazioni."  WHERE id_from = :id1 AND id_to = :id2 ");
  109.             $st->bindParam(":id1", $id2);          
  110.             $st->bindParam(":id2", $id1);
  111.             $st->execute();
  112.            
  113.             return 1;
  114.         }
  115.    
  116.    
  117.         public function trova_proprietario($id) {
  118.             $id = trim($id);
  119.             $id = str_replace("#", "", $id);
  120.             echo "<br> ------- Sto provando a trovare il proprietario di $id";
  121.             $conn = $this->getConnection();
  122.             $query =  "select chi_scrive  as X from ".Constants::prefix_db.Constants::dbtablemessages." where id=$id";
  123. echo "<br> $query </br>";
  124.             $st = $conn->prepare($query);
  125.             $st->execute();
  126.             $res=$st->fetch();
  127.             //print_r($res);
  128.             if($res['X']==NULL)
  129.                 return -1093;
  130.             return $res['X'];
  131.     }
  132.    
  133.         public function id_from_message($id, $message){
  134.         $conn= $this->getConnection();
  135.         $query = "select id as RES from ".Constants::prefix_db.Constants::dbtablemessages." where contenuto =:message";
  136.         $stm=$conn->prepare($query);
  137.         $stm->bindParam("message", $message);      
  138.         $stm->execute();
  139.         $res=$stm->fetch();
  140.         return $res['RES'];    
  141.    
  142.     }
  143.    
  144.     public function id_from_potrebbeservire($n){
  145.         $conn= $this->getConnection();
  146.         $query = "select id as RES from ".Constants::prefix_db.Constants::dbtableusers." where potrebbe_servire=:n";
  147.         $stm=$conn->prepare($query);
  148.         $stm->bindParam("n", $n);      
  149.         $stm->execute();
  150.         $res=$stm->fetch();
  151.         return $res['RES'];
  152.    
  153.     }
  154.    
  155.    
  156.    
  157.     public function idconv_from_id($id) {
  158.             $conn = $this->getConnection();
  159.             $query =  "select potrebbe_servire as X from ".Constants::prefix_db.Constants::dbtableusers." where id=$id";
  160.             $st = $conn->prepare($query);
  161.             $st->execute();
  162.             $res=$st->fetch();
  163.  
  164. echo "<br> $query </br>";
  165.             if($res['X']==NULL)
  166.                 return -1092;
  167.             return $res['X'];
  168.     }
  169.    
  170.     public function tempo_ultimo_messaggio($id){
  171.         $conn= $this->getConnection();
  172.         $stm=$conn->prepare("select max(quando_scrive) as res from ".Constants::prefix_db.Constants::dbtablemessages." where chi_scrive=:id");
  173.         $stm->bindParam(":id", $id);
  174.         $stm->execute();
  175.         $res=$stm->fetch();
  176.         if($res["res"]==NULL)
  177.             return 0;
  178.         return $res["res"];
  179.     }
  180.    
  181.    
  182.     public function conta_nick($nick) {
  183.         $conn= $this->getConnection();
  184.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where nickname_utente = '".$nick."' ");
  185.                 $stm->execute();
  186.         $res=$stm->fetch();
  187.         return $res["res"];    
  188.     }
  189.    
  190.    
  191.         public function conta_sesso($s) {
  192.         $conn= $this->getConnection();
  193.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where sesso_utente IS NOT NULL ");
  194.         if(strlen($s)>2)
  195.         @$stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where sesso_utente='".$s."'");
  196.    
  197.     if(strlen($s)>10)
  198.         @$stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where sesso_utente IS NULL");
  199.                
  200.         $stm->execute();
  201.         $res=$stm->fetch();
  202.         return $res["res"];    
  203.     }
  204.    
  205.    
  206.     public function num_rows($tablename) {
  207.         $conn= $this->getConnection();
  208.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.$tablename." ");
  209.         $stm->execute();
  210.         $res=$stm->fetch();
  211.         return $res["res"];    
  212.     }
  213.    
  214.         public function conta_tutti() {
  215.         $conn= $this->getConnection();
  216.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." ");
  217.         $stm->execute();
  218.         $res=$stm->fetch();
  219.         return $res["res"];    
  220.     }
  221.    
  222.     public function conta($id) {
  223.         $conn= $this->getConnection();
  224.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where id=:id");
  225.         $stm->bindParam(":id", $id);
  226.         $stm->execute();
  227.         $res=$stm->fetch();
  228.         return $res["res"];    
  229.     }
  230.    
  231.         public function conta_potrebbe_servire($potrebbe_servire) {
  232.         $conn= $this->getConnection();
  233.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtableusers." where potrebbe_servire=:potrebbe_servire");
  234.         $stm->bindParam(":potrebbe_servire", $potrebbe_servire);
  235.         $stm->execute();
  236.         $res=$stm->fetch();
  237.         return $res["res"];    
  238.     }
  239.    
  240.     public function checkDuplicateMessage($text) {
  241.         $text = substr($text, 1, strlen($text)-1);
  242.         $vecchio = $text;
  243.         $conn= $this->getConnection();
  244.         $stm=$conn->prepare("select count(*) as res from ".Constants::prefix_db.Constants::dbtablemessages." where contenuto=:text");
  245.         $stm->bindParam(":text", $text);
  246.         $stm->execute();
  247.         $res=$stm->fetch();
  248.         echo "<br>sto confrontando $text </br>";
  249.         return $res["res"];    
  250.     }
  251.    
  252.    
  253.    
  254.     public function getColumnName($tablename){
  255.         $conn= $this->getConnection();
  256.         $stm=$conn->prepare("select column_name from information_schema.columns where table_name = '".Constants::prefix_db.$tablename."' order by ordinal_position");
  257.         $stm->execute();
  258.         $res=$stm->fetchAll();
  259.         return $res;   
  260.     }
  261.    
  262.     public function getColumnNameNoPrefix($tablename){
  263.         $conn= $this->getConnection();
  264.         $stm=$conn->prepare("select column_name from information_schema.columns where table_name = '".$tablename."' order by ordinal_position");
  265.         $stm->execute();
  266.         $res=$stm->fetchAll();
  267.         return $res;   
  268.     }
  269.    
  270.     public function getTd($arr){
  271.     echo "<tr>";
  272.     foreach($arr as $cn){
  273.             echo "<td>".($cn['column_name'])."</td>";
  274.             }
  275.     echo "</tr>";
  276.    
  277.     }
  278.     public function countNumMessage($min, $max,  $id){
  279.         $conn= $this->getConnection();
  280.         $query = "select count(*) as RES from ".Constants::prefix_db.Constants::dbtablemessages." where quando_scrive>$min and quando_scrive<$max and chi_scrive = $id ";
  281.         $stm=$conn->prepare($query);               
  282.         $stm->execute();
  283.         $res=$stm->fetch();
  284.         //print_r($res);
  285.         //echo "sto ritornando ".$res['RES']."<br>";
  286.         if($id==Constants::page_id)
  287.             return -1;
  288.         return $res['RES'];    
  289.    
  290.     }
  291.     public function getNumMessagesRange($min, $max){
  292.         $conn= $this->getConnection();
  293.         $query = "select count(*) as RES from ".Constants::prefix_db.Constants::dbtablemessages." where quando_scrive>$min and quando_scrive<$max";
  294.         $stm=$conn->prepare($query);
  295.                
  296.         $stm->execute();
  297.         $res=$stm->fetch();
  298.         return $res;    
  299.    
  300.     }
  301.     public function getListUsers_senzasesso($limit) {
  302.         $conn= $this->getConnection();
  303.         $query = "select * from ".Constants::prefix_db."utenti WHERE sesso_utente <> 'female' and sesso_utente <> 'male' and sesso_utente <> 'FAKE' and status > -1 ORDER BY id DESC ";
  304.         $stm=$conn->prepare($query);
  305.         $stm->execute();
  306.         $res=$stm->fetchAll();
  307.         return $res;
  308.     }
  309.    
  310.     public function getListUsers($limit) {
  311.         $conn= $this->getConnection();
  312.         if($limit == 0)
  313.         $query = "select ".Constants::prefix_db."utenti.stelle AS STELLUCCE, ".Constants::prefix_db."utenti.diamanti, ".Constants::prefix_db.Constants::dbtableusers.".id, ".Constants::prefix_db.Constants::dbtableusers.".status, max(".Constants::prefix_db.Constants::dbtablemessages.".quando_scrive) as MAXX, nome_utente, cognome_utente,  sesso_utente from ".Constants::prefix_db.Constants::dbtableusers.", ".Constants::prefix_db.Constants::dbtablemessages." WHERE ".Constants::prefix_db.Constants::dbtableusers.".id = ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive GROUP BY ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive ORDER BY MAXX DESC";  
  314.             else
  315.         $query = "select ".Constants::prefix_db."utenti.stelle AS STELLUCCE, ".Constants::prefix_db."utenti.diamanti,  ".Constants::prefix_db.Constants::dbtableusers.".id, ".Constants::prefix_db.Constants::dbtableusers.".status, max(".Constants::prefix_db.Constants::dbtablemessages.".quando_scrive) as MAXX, nome_utente, cognome_utente, sesso_utente from ".Constants::prefix_db.Constants::dbtableusers.", ".Constants::prefix_db.Constants::dbtablemessages." WHERE ".Constants::prefix_db.Constants::dbtableusers.".id = ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive GROUP BY ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive ORDER BY MAXX DESC LIMIT 0, ".$limit; 
  316.         $stm=$conn->prepare($query);
  317.         $stm->execute();
  318.         $res=$stm->fetchAll();
  319.         return $res;
  320.     }
  321.  
  322.             public function getFake($limit) {
  323.         $conn= $this->getConnection();
  324.         $query = "select ".Constants::prefix_db.Constants::dbtableusers.".id, ".Constants::prefix_db.Constants::dbtableusers.".status, max(".Constants::prefix_db.Constants::dbtablemessages.".quando_scrive) as MAXX, nome_utente, sesso_utente from ".Constants::prefix_db.Constants::dbtableusers.", ".Constants::prefix_db.Constants::dbtablemessages." WHERE ".Constants::prefix_db.Constants::dbtableusers.".id = ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive and sesso_utente='FAKE'";   
  325.         $stm=$conn->prepare($query);
  326.         $stm->execute();
  327.         $res=$stm->fetchAll();
  328.         return $res;
  329.     }
  330.    
  331.     public function do_query($q) {
  332.         $conn= $this->getConnection();
  333.         $stm=$conn->prepare($q);
  334.         $stm->execute();
  335.         $res=$stm->fetchAll();
  336.         return $res;
  337.     }
  338.    
  339.         public function getListUsersNOTSEX($limit) {
  340.         $conn= $this->getConnection();
  341.         $query = "select ".Constants::prefix_db.Constants::dbtableusers.".id, ".Constants::prefix_db.Constants::dbtableusers.".status, max(".Constants::prefix_db.Constants::dbtablemessages.".quando_scrive) as MAXX, nome_utente, sesso_utente from ".Constants::prefix_db.Constants::dbtableusers.", ".Constants::prefix_db.Constants::dbtablemessages." WHERE ".Constants::prefix_db.Constants::dbtableusers.".id = ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive and sesso_utente <> 'male' AND sesso_utente <> 'female'  and sesso_utente <> 'FAKE' GROUP BY ".Constants::prefix_db.Constants::dbtablemessages.".chi_scrive ORDER BY RAND() DESC LIMIT 0, ".$limit; 
  342.         $query =" select * from ".Constants::prefix_db."utenti where sesso_utente IS NULL ORDER BY RAND() DESC LIMIT 0, ".$limit;
  343.         $stm=$conn->prepare($query);
  344.         $stm->execute();
  345.         $res=$stm->fetchAll();
  346.         return $res;
  347.     }
  348.    
  349. public function getListUsersDaVotare($limit, $votante, $sex) {
  350.         $conn= $this->getConnection();
  351.         $query = "select ".Constants::prefix_db.Constants::dbtableusers.".id, ".Constants::prefix_db.Constants::dbtableusers.".status, nome_utente, sesso_utente from ".Constants::prefix_db.Constants::dbtableusers." WHERE sesso_utente = '".$sex."' AND ".Constants::prefix_db.Constants::dbtableusers.".id NOT IN (Select Votazioni.id_votata from Votazioni) ORDER BY RAND() DESC LIMIT 0, ".$limit;  
  352.         $stm=$conn->prepare($query);
  353.         $stm->execute();
  354.         $res=$stm->fetchAll();
  355.         return $res;
  356.     }
  357.    
  358.    
  359.    
  360.     public function getNoPrefix($tablename) {
  361.         $conn= $this->getConnection();
  362.         $stm=$conn->prepare("select * from ".$tablename);
  363.         $stm->execute();
  364.         $res=$stm->fetch();
  365.         return $res;
  366.     }
  367.    
  368.     public function getAll($tablename) {
  369.         $conn= $this->getConnection();
  370.         $stm=$conn->prepare("select * from ".Constants::prefix_db.$tablename);
  371.         $stm->execute();
  372.         $res=$stm->fetchAll();
  373.         return $res;
  374.     }
  375.  
  376.    
  377.     public function insert($id, $b, $n) {
  378.         if($id == NULL)
  379.                 return -1;
  380.             $conn = $this->getConnection();
  381.             $st = $conn->prepare("insert into ".Constants::prefix_db.Constants::dbtableusers." (id, potrebbe_servire, nome_utente, cognome_utente, sesso_utente, nickname_utente, date_nickname_utente, stelle, regione, caffe, diamanti) values (:id, :b, :n, '', '', '', '', '3', NULL, '0', '0');");
  382.             $st->bindParam(":id", $id);        
  383.             $st->bindParam(":b", $b);
  384.                         $st->bindParam(":n", $n);
  385.             $st->execute();
  386.             return 1;
  387.     }
  388.    
  389.     public function insert_message($id, $message) {
  390.             $time = time();
  391.             $conn = $this->getConnection();
  392.             $st = $conn->prepare("insert into ".Constants::prefix_db.Constants::dbtablemessages." (chi_scrive, contenuto, quando_scrive) values (:id, :message, :time);");
  393.             $st->bindParam(":id", $id);
  394.             $st->bindParam(":time", $time );
  395.             $st->bindParam(":message", $message);
  396.             $st->execute();
  397.             return 1;
  398.     }
  399.    
  400.     public function getListPlugins() {
  401.         $conn= $this->getConnection();
  402.         //$stm=$conn->prepare("select * from ".Constants::prefix_db.Constants::dbtableplugins." ORDER BY h_activation");
  403.         $stm=$conn->prepare("select * from ".Constants::prefix_db.Constants::dbtableplugins." ORDER BY h_activation");
  404.         $stm->execute();
  405.         $res=$stm->fetchAll();
  406.         return $res;    
  407.     }
  408.    
  409.     public function getListPluginsCOMUNI($spotted) {
  410.         $conn= $this->getConnection();
  411.         //$stm=$conn->prepare("select * from ".Constants::prefix_db.Constants::dbtableplugins." ORDER BY h_activation");
  412.         $stm=$conn->prepare("select * from ".comuni::dbtablepluginsCOMUNI." ORDER BY h_activation");
  413.         $stm->execute();
  414.         $res=$stm->fetchAll();
  415.         return $res;    
  416.     }
  417.    
  418.     public function getConfig($key){
  419.         $conn= $this->getConnection();
  420.         $stm=$conn->prepare("select * from config where prefix_db=:key");
  421.         $stm->bindParam("key", $key);
  422.         $stm->execute();
  423.         $res=$stm->fetchAll();
  424.         return $res;
  425.     }
  426.    
  427.     public function nuova_emoticon($emoticon, $descrizione) {
  428.             $conn = $this->getConnection();
  429.                 $query = "INSERT INTO ".Constants::dbtableemoticon."  VALUES (NULL, '".$emoticon."', '".$descrizione."');";
  430.             $st = $conn->prepare($query);
  431.             $st->execute();
  432.             return 1;
  433.     }
  434.    
  435.     public function insert_table_field($tablename, $value) {
  436.             $conn = $this->getConnection();
  437.             if($tablename == Constants::prefix_db.Constants::dbtableplugins)
  438.                 $query = "INSERT INTO ".$tablename."  VALUES (NULL, '".$value."', '0', 'privata', '10', '1', '00', '0');";
  439.             if($tablename == Constants::prefix_db.Constants::dbtablelists)
  440.                 $query = "INSERT INTO ".$tablename."  VALUES (NULL, '".$value."', 'blacklist', '0');";         
  441.             if($tablename == Constants::prefix_db.Constants::dbtablewords)
  442.                 $query = "INSERT INTO ".$tablename."  VALUES ('', '".$value."', '1');";        
  443.            
  444.            
  445.             $st = $conn->prepare($query);
  446.             $st->execute();
  447.             return 1;
  448.     }
  449.    
  450.     public function update_table_field($tablename, $id, $field, $value) {
  451.             $conn = $this->getConnection();
  452.             if(($value=='NULL')or(strcmp($value, "NULL")==0)){
  453.                 $st = $conn->prepare("update ".$tablename." set ".$field."=NULL where id=:id;");
  454.             }
  455.             else{
  456.                 $st = $conn->prepare("update ".$tablename." set ".$field."=:value where id=:id;");
  457.                 $st->bindParam(":value", $value);
  458.             }
  459.            
  460.            
  461.             $st->bindParam(":id", $id);
  462.             $st->execute();
  463.             return 1;
  464.     }
  465.  
  466.     public function get_table_field($tablename, $id, $field) {
  467.         if($id==NULL)
  468.             return 0;
  469.             $conn = $this->getConnection();
  470.             $query =  "select $field from ".$tablename." where id=$id";
  471.             $st = $conn->prepare($query);
  472.             $st->execute();
  473.             $res=$st->fetch();
  474.             //print_r($res);
  475.             return $res[$field];
  476.     }
  477.    
  478.         public function get_emoticon($tablename, $id, $field) {
  479.             $conn = $this->getConnection();
  480.             $query =  "select emoticon from ".$tablename." where descrizione='$id'";
  481.             $st = $conn->prepare($query);
  482.             $st->execute();
  483.             $res=$st->fetch();
  484.             //print_r($res);
  485.             return $res['emoticon'];
  486.     }
  487.  
  488.    
  489.     public function deleteRecordById($tablename, $id) {
  490.             $conn = $this->getConnection();
  491.             $query =  "DELETE FROM ".$tablename." where id=$id";
  492.             $st = $conn->prepare($query);
  493.             $st->execute();
  494.             return 1;
  495.     }
  496.    
  497.     public function generateEditForm($method, $action,  $id, $idvalue, $field, $fieldvalue){
  498.         return "<form method=\"$method\" action=\"$action\"><input type=\"text\" name=\"$id\" value=\"$idvalue\" style='display: none'><input type=\"text\" name=\"$field\" value=\"$fieldvalue\" ><input type=\"submit\" value=\"OK\"></form>";
  499.     }
  500. }
  501.  
  502. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement