public function get($var_name) { if ($this->hasVariable($var_name)) { return $this->variables[$var_name]; } else { $bt = bt(); display_error('The variable <strong>"' . $var_name . '"</strong> is not available in <strong>' . $bt['file'] . ' [ Line ' . $bt['line'] . ']</strong>'); } }
/** * Initialize Backdrop Console. */ function b_init() { $arguments = array(); $options = array(); $command = array('options' => array('root' => 'Backdrop root folder', 'drush' => 'Use .drush.inc files instead. Drupal 7 drush commands compatibility.', 'y' => 'Force Yes to all Yes/No questions', 'yes' => 'Force Yes to all Yes/No questions', 'd' => 'Debug mode', 'debug' => 'Debug mode on')); b_get_command_args_options($arguments, $options, $command); $_backdrop_root = FALSE; if (isset($options['root'])) { if (file_exists($options['root'] . '/settings.php')) { $_backdrop_root = $options['root']; } } else { $path = getcwd(); if (file_exists($path . '/settings.php')) { $_backdrop_root = $path; } } b_init_blobals(); if ($_backdrop_root) { chdir($_backdrop_root); $full_path = getcwd(); define('BACKDROP_ROOT', $full_path); require_once 'core/includes/bootstrap.inc'; if (function_exists('backdrop_bootstrap_is_installed')) { backdrop_settings_initialize(); if (backdrop_bootstrap_is_installed()) { b_backdrop_installed(TRUE); } else { b_backdrop_installed(FALSE); b_set_message(bt('BackdropCMS is not installed yet.'), 'warning'); } } } if (isset($options['drush'])) { drush_mode(TRUE); b_set_message('Drush mode on'); } if (isset($options['y']) or isset($options['yes'])) { b_yes_mode(TRUE); b_set_message('Yes mode on'); } if (isset($options['d']) or isset($options['debug'])) { b_is_debug(TRUE); b_set_message('Debug mode on'); } }
function zen_href_link_admin($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true) { global $request_type, $session_started, $http_domain, $https_domain; if ($page == '') { bt(); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>zen_href_link_admin(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_ADMIN; } elseif ($connection == 'SSL') { $link = HTTPS_SERVER . DIR_WS_HTTPS_ADMIN; } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>zen_href_link_admin(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>'); } if (!strstr($page, '.php')) { $page .= '.php'; } if ($parameters == '') { $link = $link . $page; $separator = '?'; } else { $link = $link . $page . '?' . $parameters; $separator = '&'; } while (substr($link, -1) == '&' || substr($link, -1) == '?') { $link = substr($link, 0, -1); } // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ($add_session_id == true && $session_started == true) { if (defined('SID') && zen_not_null(SID)) { $sid = SID; } elseif ($request_type == 'NONSSL' && $connection == 'SSL' && ENABLE_SSL_ADMIN == 'true' || $request_type == 'SSL' && $connection == 'NONSSL') { //die($connection); if ($http_domain != $https_domain) { $sid = zen_session_name() . '=' . zen_session_id(); } } } if (isset($sid)) { $link .= $separator . $sid; } return $link; }
<?php echo abre_form(CAMINHO_PADRAO_FORM); echo titulo('Cadastro de Sub Categorias'); echo titulo('<br>'); echo monta_select($tamanho = "12", $label = "Categoria", $nome = "id_categoria", $dados['categorias'], $selecionado = $dados['form']['id_categoria'], $id = "", $classes = ""); echo titulo('<br>'); echo input($tamanho = "12", $label = "Nome", $tipo_input = "text", $value = $dados['form']['nome'], $nome = "nome", $id = "nome", $maxlength = 60); echo titulo('<br>'); echo bt($nome = 'Salvar ', $id = 'validar_categorias', $icone = ""); echo fechar_form(); echo limpar_both(); ?>
bt('if (a)' . "\n" . '{' . "\n" . 'b;' . "\n" . '}' . "\n" . 'else' . "\n" . '{' . "\n" . 'c;' . "\n" . '}', 'if (a) {' . "\n" . ' b;' . "\n" . '} else {' . "\n" . ' c;' . "\n" . '}'); test_fragment('if (foo) {', 'if (foo) {'); test_fragment('foo {', 'foo {'); test_fragment('return {', 'return {'); // return needs the brace. maybe something else as well: feel free to report. // test_fragment('return\n{', 'return\n{'); // can't support this?, but that's an improbable and extreme case anyway. test_fragment('return;' . "\n" . '{', 'return; {'); bt('if (foo) bar();' . "\n" . 'else break'); bt('function x() {' . "\n" . ' foo();' . "\n" . '}zzz', 'function x() {' . "\n" . ' foo();' . "\n" . '}' . "\n" . 'zzz'); bt('a: do {} while (); xxx', 'a: do {} while ();' . "\n" . 'xxx'); bt('var a = new function();'); test_fragment('new function'); bt('var a =' . "\n" . 'foo', 'var a = foo'); $opts->brace_style = "end-expand"; bt('if(1){2}else{3}', "if (1) {\n 2\n}\nelse {\n 3\n}"); bt('try{a();}catch(b){c();}finally{d();}', "try {\n a();\n}\ncatch (b) {\n c();\n}\nfinally {\n d();\n}"); bt('if(a){b();}else if(c) foo();', "if (a) {\n b();\n}\nelse if (c) foo();"); bt("if (a) {\n// comment\n}else{\n// comment\n}", "if (a) {\n // comment\n}\nelse {\n // comment\n}"); // if/else statement with empty body bt('if (x) {y} else { if (x) {y}}', 'if (x) {' . "\n" . ' y' . "\n" . '}' . "\n" . 'else {' . "\n" . ' if (x) {' . "\n" . ' y' . "\n" . ' }' . "\n" . '}'); bt('if (a)' . "\n" . '{' . "\n" . 'b;' . "\n" . '}' . "\n" . 'else' . "\n" . '{' . "\n" . 'c;' . "\n" . '}', 'if (a) {' . "\n" . ' b;' . "\n" . '}' . "\n" . 'else {' . "\n" . ' c;' . "\n" . '}'); test_fragment(' /*' . "\n" . '* xx' . "\n" . '*/' . "\n" . '// xx' . "\n" . 'if (foo) {' . "\n" . ' bar();' . "\n" . '}', ' /*' . "\n" . ' * xx' . "\n" . ' */' . "\n" . ' // xx' . "\n" . ' if (foo) {' . "\n" . ' bar();' . "\n" . ' }'); $opts->unescape_strings = false; bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', '"\\x22\\x27", \'\\x22\\x27\', "\\x5c", \'\\x5c\', "\\xff and \\xzz", "unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"'); $opts->unescape_strings = true; bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', '"\\"\'", \'"\\\'\', "\\\\", \'\\\\\', "\\xff and \\xzz", "unicode \\u0000 \\" \' \\\\ \\uffff \\uzzzz"'); $opts->unescape_strings = false; bt('a = <?= external() ?> ;'); // not the most perfect thing in the world, but you're the weirdo beaufifying php mix-ins with javascript beautifier bt('a = <%= external() %> ;');
/** * applyUpgrade * * @param array $pPackage * @param array $pUpgradeHash * @access public * @return empty array on success, array with errors on failure */ function applyUpgrade($pPackage, $pUpgradeHash) { global $gBitDb, $gBitDbType; $ret = array(); if (!empty($pUpgradeHash) && is_array($pUpgradeHash)) { // set table prefixes and handle special case of sequence prefixes $schemaQuote = strrpos(BIT_DB_PREFIX, '`'); $sequencePrefix = $schemaQuote ? substr(BIT_DB_PREFIX, $schemaQuote + 1) : BIT_DB_PREFIX; $tablePrefix = $this->getTablePrefix(); $dict = NewDataDictionary($gBitDb->mDb); $failedcommands = array(); for ($i = 0; $i < count($pUpgradeHash); $i++) { if (!is_array($pUpgradeHash[$i])) { vd("[{$pPackage}][{$i}] is NOT an array"); vd($pUpgradeHash[$i]); bt(); die; } $type = key($pUpgradeHash[$i]); $step =& $pUpgradeHash[$i][$type]; switch ($type) { case 'DATADICT': for ($j = 0; $j < count($step); $j++) { $dd =& $step[$j]; switch (key($dd)) { case 'CREATE': foreach ($dd as $create) { foreach (array_keys($create) as $tableName) { $completeTableName = $tablePrefix . $tableName; $sql = $dict->CreateTableSQL($completeTableName, $create[$tableName], 'REPLACE'); if ($sql && $dict->ExecuteSQLArray($sql, FALSE) > 0) { } else { $errors[] = 'Failed to create ' . $completeTableName; $failedcommands[] = implode(" ", $sql); } } } break; case 'ALTER': foreach ($dd as $alter) { foreach (array_keys($alter) as $tableName) { $completeTableName = $tablePrefix . $tableName; $this->mDb->convertQuery($completeTableName); foreach ($alter[$tableName] as $from => $flds) { if (is_string($flds)) { $sql = $dict->ChangeTableSQL($completeTableName, $flds); } else { $sql = $dict->ChangeTableSQL($completeTableName, array($flds)); } if ($sql) { for ($sqlIdx = 0; $sqlIdx < count($sql); $sqlIdx++) { $this->mDb->convertQuery($sqlFoo); } } if ($sql && $dict->ExecuteSQLArray($sql, FALSE) > 0) { } else { $errors[] = 'Failed to alter ' . $completeTableName . ' -> ' . $alter[$tableName]; $failedcommands[] = implode(" ", $sql); } } } } break; case 'RENAMETABLE': foreach ($dd as $rename) { foreach (array_keys($rename) as $tableName) { $completeTableName = $tablePrefix . $tableName; if ($sql = @$dict->RenameTableSQL($completeTableName, $tablePrefix . $rename[$tableName])) { foreach ($sql as $query) { $this->mDb->query($query); } } else { $errors[] = 'Failed to rename table ' . $completeTableName . '.' . $rename[$tableName][0] . ' to ' . $rename[$tableName][1]; $failedcommands[] = implode(" ", $sql); } } } break; case 'RENAMECOLUMN': foreach ($dd as $rename) { foreach (array_keys($rename) as $tableName) { $completeTableName = $tablePrefix . $tableName; foreach ($rename[$tableName] as $from => $flds) { // MySQL needs the fields string, others do not. // see http://phplens.com/lens/adodb/docs-datadict.htm $to = substr($flds, 0, strpos($flds, ' ')); if ($sql = @$dict->RenameColumnSQL($completeTableName, $from, $to, $flds)) { foreach ($sql as $query) { $this->mDb->query($query); } } else { $errors[] = 'Failed to rename column ' . $completeTableName . '.' . $rename[$tableName][0] . ' to ' . $rename[$tableName][1]; $failedcommands[] = implode(" ", $sql); } } } } break; case 'CREATESEQUENCE': foreach ($dd as $create) { foreach ($create as $sequence) { $this->mDb->CreateSequence($sequencePrefix . $sequence); } } break; case 'RENAMESEQUENCE': foreach ($dd as $rename) { foreach ($rename as $from => $to) { if ($gBitDbType != 'mysql' || $this->mDb->tableExists($tablePrefix . $from)) { if ($id = $this->mDb->GenID($from)) { $this->mDb->DropSequence($sequencePrefix . $from); $this->mDb->CreateSequence($sequencePrefix . $to, $id); } else { $errors[] = 'Failed to rename sequence ' . $sequencePrefix . $from . ' to ' . $sequencePrefix . $to; $failedcommands[] = implode(" ", $sql); } } else { $this->mDb->CreateSequence($sequencePrefix . $to, $pUpgradeHash['sequences'][$to]['start']); } } } break; case 'DROPSEQUENCE': foreach ($dd as $drop) { foreach ($drop as $sequence) { $this->mDb->DropSequence($sequencePrefix . $sequence); } } break; case 'DROPCOLUMN': foreach ($dd as $drop) { foreach (array_keys($drop) as $tableName) { $completeTableName = $tablePrefix . $tableName; foreach ($drop[$tableName] as $col) { if ($sql = $dict->DropColumnSQL($completeTableName, $col)) { foreach ($sql as $query) { $this->mDb->query($query); } } else { $errors[] = 'Failed to drop column ' . $completeTableName; $failedcommands[] = implode(" ", $sql); } } } } break; case 'DROPTABLE': foreach ($dd as $drop) { foreach ($drop as $tableName) { $completeTableName = $tablePrefix . $tableName; $sql = $dict->DropTableSQL($completeTableName); if ($sql && $dict->ExecuteSQLArray($sql) > 0) { } else { $errors[] = 'Failed to drop table ' . $completeTableName; $failedcommands[] = implode(" ", $sql); } } } break; case 'CREATEINDEX': foreach ($dd as $indices) { foreach (array_keys($indices) as $index) { $completeTableName = $tablePrefix . $indices[$index][0]; if ($sql = $dict->CreateIndexSQL($index, $completeTableName, $indices[$index][1], $indices[$index][2])) { foreach ($sql as $query) { $this->mDb->query($query); } } else { $errors[] = 'Failed to create index ' . $index; $failedcommands[] = implode(" ", $sql); } } } break; } } if (!empty($sql)) { $sql = null; } break; case 'QUERY': uksort($step, 'upgrade_query_sort'); foreach (array_keys($step) as $dbType) { if ($dbType == 'MYSQL' && preg_match('/mysql/', $gBitDbType)) { $sql = $step[$dbType]; unset($step['SQL92']); } elseif ($dbType == 'PGSQL' && preg_match('/postgres/', $gBitDbType)) { $sql = $step[$dbType]; unset($step['SQL92']); } elseif ($dbType == 'SQL92' && !empty($step['SQL92'])) { $sql = $step[$dbType]; } if (!empty($sql)) { foreach ($sql as $query) { if (!($result = $this->mDb->query($query))) { $errors[] = 'Failed to execute SQL query'; $failedcommands[] = implode(" ", $sql); } } $sql = NULL; } } break; case 'PHP': eval($step); break; case 'POST': $postSql[] = $step; break; } } // turn on features that are turned on // legacy stuff if ($this->isFeatureActive('feature_' . $pPackage)) { $this->storeConfig('package_' . $pPackage, 'y', KERNEL_PKG_NAME); } if (!empty($failedcommands)) { $ret['errors'] = $errors; $ret['failedcommands'] = $failedcommands; } } return $ret; }
function queryComplete() { if (!empty($this->mDebug)) { print "<tt>\n" . vsprintf(str_replace('?', "'%s'", $this->mDb->last_query), $this->mDb->last_parameters) . "\n</tt><br/>"; if ($this->mDebug == 99) { bt(); } } parent::queryComplete(); }
function bit_error_string($iDBParms = array()) { global $gBitDb; global $gBitUser; global $argv; $separator = "\n"; $indent = " "; $date = date("D M d H:i:s Y"); // [Tue Sep 24 12:19:20 2002] [error] if (isset($gBitUser->mInfo)) { $acctStr = "ID: " . $gBitUser->mInfo['user_id'] . " - Login: "******" - e-mail: " . $gBitUser->mInfo['email']; } else { $acctStr = "User unknown"; } $info = $indent . "[ - " . BIT_MAJOR_VERSION . "." . BIT_MINOR_VERSION . "." . BIT_SUB_VERSION . " " . BIT_LEVEL . " - ] [ {$date} ]" . $separator; $info .= $indent . "-----------------------------------------------------------------------------------------------" . $separator; $info .= $indent . "#### USER AGENT: " . $_SERVER['HTTP_USER_AGENT'] . $separator; $info .= $indent . "#### ACCT: " . $acctStr . $separator; $uri = ''; if (!empty($_SERVER['SCRIPT_URI'])) { $uri = $_SERVER['SCRIPT_URI'] . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '') . $separator; } elseif (!empty($argv)) { $uri = implode(' ', $argv); } $info .= $indent . "#### URL: " . $uri; if (isset($_SERVER['HTTP_REFERER'])) { $info .= $indent . "#### REFERRER: {$_SERVER['HTTP_REFERER']}" . $separator; } $info .= $indent . "#### HOST: {$_SERVER['HTTP_HOST']}" . $separator; $info .= $indent . "#### IP: {$_SERVER['REMOTE_ADDR']}" . $separator; if (!empty($gBitDb)) { $info .= $indent . "#### DB: " . $gBitDb->mDb->databaseType . '://' . $gBitDb->mDb->user . '@' . $gBitDb->mDb->host . '/' . $gBitDb->mDb->database . $separator; } if ($gBitDb && isset($php_errormsg)) { $info .= $indent . "#### PHP: " . $php_errormsg . $separator; } if (!empty($iDBParms['sql'])) { $badSpace = array("\n", "\t"); $info .= $indent . "#### SQL: " . str_replace($badSpace, ' ', $iDBParms['sql']) . $separator; if (is_array($iDBParms['p2'])) { $info .= $indent . '[' . implode(', ', $iDBParms['p2']) . ']' . $separator; } } $errno = !empty($iDBParms['errno']) ? 'Errno: ' . $iDBParms['errno'] : ''; if (!empty($iDBParms['db_msg'])) { $info .= $indent . "#### ERROR CODE: " . $errno . " Message: " . $iDBParms['db_msg']; } $stackTrace = bt(9999, FALSE); //multiline expressions matched if (preg_match_all("/.*adodb_error_handler\\([^\\}]*\\)(.+\\}.+)/ms", $stackTrace, $match)) { $stackTrace = $match[1][0]; } $ret = $info . $separator . $separator . $stackTrace . $separator . $separator; return $ret; }
/** * verifyRequirements * * @param array $pReqHash * @access public * @return TRUE on success, FALSE on failure - mErrors will contain reason for failure */ function verifyRequirements(&$pReqHash) { if (!empty($pReqHash) && is_array($pReqHash)) { foreach ($pReqHash as $pkg => $versions) { if (empty($versions['min'])) { $this->mErrors['version_min'] = "You have to provide a minimum version number for the {$pkg} requirement. If you just want the required package to be present, please use 0.0.0 as minimum version."; } elseif (!$this->validateVersion($versions['min'])) { $this->mErrors['version_min'] = "Please make sure you use a valid minimum version number for the {$pkg} requirement."; } elseif (!empty($versions['max'])) { if (!$this->validateVersion($versions['max'])) { $this->mErrors['version_max'] = "Please make sure you use a valid maximum version number for the {$pkg} requirement."; } elseif (version_compare($versions['min'], $versions['max'], '>=')) { $this->mErrors['version_max'] = "Please make sure the maximum version is greater than the minimum version for the {$pkg} requirement."; } } } } else { $this->mErrors['deps'] = "If you want to register requirements, please do so with a valid requirement hash."; } // since this should only show up when devs are working, we'll simply display the output: if (!empty($this->mErrors)) { vd($this->mErrors); bt(); } return count($this->mErrors) == 0; }
function zen_remove_product($product_id, $ptc = 'true') { vd('zen_remove_product is dead. Need to use CommerceProduct::expunge'); bt(); die; }
<?php echo abre_form(CAMINHO_PADRAO_FORM); echo titulo('Cadastro de Usuarios'); echo titulo('<br>'); echo input($tamanho = "12", $label = "Nome", $tipo_input = "text", $value = $dados['form']['nome'], $nome = "nome", $id = "nome", $maxlength = 60); echo titulo('<br>'); echo input($tamanho = "12", $label = "Email", $tipo_input = "text", $value = $dados['form']['email'], $nome = "email", $id = "email", $maxlength = 150); echo titulo('<br>'); echo monta_select($tamanho = "12", $label = "Status", $nome = "status", $dados['status'], $selecionado = $dados['form']['status'], $id = "", $classes = ""); echo titulo('<br>'); echo bt($nome = 'Salvar ', $id = 'validar_usuarios', $icone = ""); echo fechar_form(); echo limpar_both(); ?>
<?php /** * this file is deprecated and slated for delete * use: require_once( '../kernel/setup_inc.php' ); instead of require_once( '../kernel/setup_inc.php' ); **/ $rootPath = empty($_SERVER['VHOST_DIR']) ? dirname(__FILE__) . '/' : $_SERVER['VHOST_DIR'] . '/'; require_once $rootPath . 'kernel/setup_inc.php'; $out = "Deprecated file require_once call:\n\tfile: bit_setup_inc.php\n\tuse \"require_once( '../kernel/setup_inc.php' );\"\n\tBacktrace to require_once source:\n\t"; $out .= bt(1, FALSE); if (!defined('IS_LIVE') || IS_LIVE == FALSE) { vd($out); } else { error_log($out); }
function __destruct() { bt(); }
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. * All Rights Reserved. See below for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details * * $Id$ * @package tidbits * @subpackage modules */ if ($gBitSystem->isFeatureActive('user_bookmarks') && $gBitUser->isRegistered() && $gBitUser->hasPermission('p_tidbits_create_bookmarks')) { /** * required setup */ require_once USERS_PKG_PATH . 'bookmark_lib.php'; global $bookmarklib; if (!is_object($bookmarklib)) { bt(); } $setup_parsed_uri = parse_url($_SERVER["REQUEST_URI"]); if (isset($setup_parsed_uri["query"])) { parse_str($setup_parsed_uri["query"], $setup_query_data); } else { $setup_query_data = array(); } // check the session to get the parent or create parent =0 $_template->tpl_vars['ownurl'] = new Smarty_variable(httpPrefix() . $_SERVER["REQUEST_URI"]); if (!isset($_SESSION["bookmarks_parent"])) { $_SESSION["bookmarks_parent"] = 0; } if (isset($_REQUEST["bookmarks_parent"])) { $_SESSION["bookmarks_parent"] = $_REQUEST["bookmarks_parent"]; }
<?php echo abre_form(CAMINHO_PADRAO_FORM); echo titulo('Cadastro de Anunciantes'); echo titulo('<br>'); echo monta_select($tamanho = "12", $label = "Categorias", $nome = "categorias", $dados['select_categoria'], $selecionado = $dados['form']['categorias'], $id = "categoria_anunciante", $classes = ""); echo titulo('<br>'); echo '' . '<select name="sub_cat" id="sub_cat">' . '<option class="sumir" value="0">Selecione uma Categoria</option>' . '</select>'; echo input($tamanho = "12", $label = "Nome", $tipo_input = "text", $value = $dados['form']['nome'], $nome = "nome", $id = "nome", $maxlength = 50); echo titulo('<br>'); //echo texto_divisoria_form('Endereço'); echo input($tamanho = "6", $label = "Logradoro", $tipo_input = "text", $value = $dados['form']['logradoro'], $nome = "logradoro", $id = "logradoro", $maxlength = 50); echo input($tamanho = "1", $label = "Numero", $tipo_input = "text", $value = $dados['form']['numero'], $nome = "numero", $id = "numero", $maxlength = 50); echo input($tamanho = "5", $label = "Bairro", $tipo_input = "text", $value = $dados['form']['bairro'], $nome = "bairro", $id = "bairro", $maxlength = 50); echo titulo('<br>'); echo input($tamanho = "4", $label = "Cidade", $tipo_input = "text", $value = $dados['form']['cidade'], $nome = "cidade", $id = "cidade", $maxlength = 50); echo input($tamanho = "4", $label = "Estado", $tipo_input = "text", $value = $dados['form']['estado'], $nome = "estado", $id = "estado", $maxlength = 50); echo input($tamanho = "4", $label = "CEP", $tipo_input = "text", $value = $dados['form']['cep'], $nome = "cep", $id = "cep", $maxlength = 8); //echo texto_divisoria_form('fotos'); echo titulo('<br>'); echo input_file($label = "Foto Perfil", $nome = "foto_perfil", $id = "") . titulo('<br>'); echo input_file($label = "Foto1", $nome = "foto1", $id = "") . titulo('<br>'); echo input_file($label = "Foto2", $nome = "foto2", $id = "") . titulo('<br>'); echo input_file($label = "Foto3", $nome = "foto3", $id = "") . titulo('<br>'); echo input_file($label = "Foto4", $nome = "foto4", $id = "") . titulo('<br>'); echo input_file($label = "Foto5", $nome = "foto5", $id = "") . titulo('<br>'); echo input_file($label = "Foto6", $nome = "foto6", $id = "") . titulo('<br>'); echo monta_select($tamanho = "12", $label = "Status", $nome = "status", $dados['status'], $selecionado = $dados['form']['status'], $id = "", $classes = ""); echo titulo('<br>'); echo bt($nome = 'Salvar ', $id = 'validar_anunciantes', $icone = ""); echo fechar_form(); echo limpar_both();