Advertisement
Guest User

Untitled

a guest
Jan 4th, 2022
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class datadyntransformer {
  15. $fieldTypes = null;
  16.  
  17. public function datadyntransformer() {
  18. $this->__constructor( );
  19. return null;
  20. }
  21.  
  22. public function __constructor() {
  23. $this->fieldTypes = array( 'input' => 'input', 'textarea' => 'textarea', 'select' => 'select', 'radio' => 'radio', 'email' => 'email', 'password' => 'password', 'immagineurl' => 'image', 'priorità' => 'select', 'chiaveesterna' => 'select', 'file' => 'file', 'categoria' => 'tree', 'categorialineare' => 'checkbox', 'idunivoco' => 'hidden', 'data' => 'date', 'hidden' => 'hidden', 'timestamp' => 'timestamp' );
  24. }
  25.  
  26. public function loaddatadynentity($idddfhie, $dbbidaaffj = false, $ddahgjfaef = true, $bcajjbeege = false) {
  27. $this->entity = new datadyntransformerentity( );
  28. $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Entita WHERE iId = ' . $idddfhie;
  29. $iihdcaj = @mysql_query( $cjbfebhbdi );
  30.  
  31. if (!( @mysql_num_rows( $iihdcaj ))) {
  32. return false;
  33. }
  34.  
  35. @$this->entity->loadentity( @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC ) );
  36. $cjbfebhbdi = 'SELECT iGroupId FROM Modulo_DataDyn_G4I WHERE iEntitaId = ' . $idddfhie;
  37. $iihdcaj = @mysql_query( $cjbfebhbdi );
  38. $debhcahgg = array( );
  39.  
  40. while ($cgcgjbahje = @mysql_fetch_row( $iihdcaj )) {
  41. $debhcahgg[] = $cgcgjbahje[0];
  42. }
  43.  
  44. @$this->entity->loadgroups( $debhcahgg );
  45. $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Campi WHERE iEntitaId = ' . $idddfhie . ' ORDER BY iOrdine ASC';
  46. $iihdcaj = @mysql_query( $cjbfebhbdi );
  47.  
  48. if (@mysql_num_rows( $iihdcaj )) {
  49. while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
  50. $diacaabihc[] = $cgcgjbahje;
  51. }
  52.  
  53. @$this->entity->loadfields( $diacaabihc );
  54. }
  55.  
  56. $dgbhcgdeia = 0;
  57. foreach ($this->entity->fields as $idjfdghgf) {
  58. $cjbfebhbdi = 'SELECT iLingua, sEtichetta FROM Modulo_DataDyn_Etichette_Campi WHERE iCampoId =' . $idjfdghgf['iId'] . ' ORDER BY iLingua';
  59. $iihdcaj = @mysql_query( $cjbfebhbdi );
  60. $icbjghhgh = array( );
  61.  
  62. while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
  63. $icbjghhgh[] = $cgcgjbahje;
  64. }
  65.  
  66. @$this->entity->loadfieldlabels( $idjfdghgf['iId'], $icbjghhgh );
  67. $ccifciiiia = array( );
  68. $diadgeibaa = 1;
  69. for ($bgffbfcid = 100; $diadgeibaa <= $bgffbfcid; ++$diadgeibaa) {
  70. $ccifciiiia[] = array( 'sValore' => $diadgeibaa );
  71. }
  72.  
  73. switch ($idjfdghgf['sType']) {
  74. case 'select': {
  75. }
  76.  
  77. case 'radio': {
  78. $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Opzioni Where iCampoId = ' . $idjfdghgf['iId'] . ' ORDER BY iOrdine';
  79. $iihdcaj = @mysql_query( $cjbfebhbdi );
  80. $dfhjeciedf = array( );
  81.  
  82. if (@mysql_num_rows( $iihdcaj )) {
  83. while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
  84. $dfhjeciedf[] = $cgcgjbahje;
  85. }
  86. }
  87.  
  88. @$this->entity->setfieldoptions( $dgbhcgdeia, $dfhjeciedf );
  89. break;
  90. }
  91.  
  92. case 'immagineurl': {
  93. @$this->entity->setfieldvalue( $dgbhcgdeia, 'sType', $this->fieldTypes['immagineurl'] );
  94. ................................................................
  95. ..........................................
  96. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement