Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class datadyntransformer {
- $fieldTypes = null;
- public function datadyntransformer() {
- $this->__constructor( );
- return null;
- }
- public function __constructor() {
- $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' );
- }
- public function loaddatadynentity($idddfhie, $dbbidaaffj = false, $ddahgjfaef = true, $bcajjbeege = false) {
- $this->entity = new datadyntransformerentity( );
- $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Entita WHERE iId = ' . $idddfhie;
- $iihdcaj = @mysql_query( $cjbfebhbdi );
- if (!( @mysql_num_rows( $iihdcaj ))) {
- return false;
- }
- @$this->entity->loadentity( @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC ) );
- $cjbfebhbdi = 'SELECT iGroupId FROM Modulo_DataDyn_G4I WHERE iEntitaId = ' . $idddfhie;
- $iihdcaj = @mysql_query( $cjbfebhbdi );
- $debhcahgg = array( );
- while ($cgcgjbahje = @mysql_fetch_row( $iihdcaj )) {
- $debhcahgg[] = $cgcgjbahje[0];
- }
- @$this->entity->loadgroups( $debhcahgg );
- $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Campi WHERE iEntitaId = ' . $idddfhie . ' ORDER BY iOrdine ASC';
- $iihdcaj = @mysql_query( $cjbfebhbdi );
- if (@mysql_num_rows( $iihdcaj )) {
- while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
- $diacaabihc[] = $cgcgjbahje;
- }
- @$this->entity->loadfields( $diacaabihc );
- }
- $dgbhcgdeia = 0;
- foreach ($this->entity->fields as $idjfdghgf) {
- $cjbfebhbdi = 'SELECT iLingua, sEtichetta FROM Modulo_DataDyn_Etichette_Campi WHERE iCampoId =' . $idjfdghgf['iId'] . ' ORDER BY iLingua';
- $iihdcaj = @mysql_query( $cjbfebhbdi );
- $icbjghhgh = array( );
- while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
- $icbjghhgh[] = $cgcgjbahje;
- }
- @$this->entity->loadfieldlabels( $idjfdghgf['iId'], $icbjghhgh );
- $ccifciiiia = array( );
- $diadgeibaa = 1;
- for ($bgffbfcid = 100; $diadgeibaa <= $bgffbfcid; ++$diadgeibaa) {
- $ccifciiiia[] = array( 'sValore' => $diadgeibaa );
- }
- switch ($idjfdghgf['sType']) {
- case 'select': {
- }
- case 'radio': {
- $cjbfebhbdi = 'SELECT * FROM Modulo_DataDyn_Opzioni Where iCampoId = ' . $idjfdghgf['iId'] . ' ORDER BY iOrdine';
- $iihdcaj = @mysql_query( $cjbfebhbdi );
- $dfhjeciedf = array( );
- if (@mysql_num_rows( $iihdcaj )) {
- while ($cgcgjbahje = @mysql_fetch_array( $iihdcaj, MYSQL_ASSOC )) {
- $dfhjeciedf[] = $cgcgjbahje;
- }
- }
- @$this->entity->setfieldoptions( $dgbhcgdeia, $dfhjeciedf );
- break;
- }
- case 'immagineurl': {
- @$this->entity->setfieldvalue( $dgbhcgdeia, 'sType', $this->fieldTypes['immagineurl'] );
- ................................................................
- ..........................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement