Ir para conteúdo
Fórum Script Brasil

desdeinter

Membros
  • Total de itens

    8
  • Registro em

  • Última visita

Sobre desdeinter

  • Data de Nascimento 06/06/1987

Contatos

  • MSN
    cris_tiano@live.com
  • Website URL
    http://
  • ICQ
    0

desdeinter's Achievements

0

Reputação

  1. desdeinter

    AJUDA NO CUTENEWS

    Alterei e nada, o "eregi" aparece em vários arquivos. <?PHP // bad practice, i know if ($HTTP_SESSION_VARS) {extract($HTTP_SESSION_VARS, EXTR_SKIP);} if ($_SESSION) {extract($_SESSION, EXTR_SKIP);} if ($HTTP_COOKIE_VARS) {extract($HTTP_COOKIE_VARS, EXTR_SKIP);} if ($_COOKIE) {extract($_COOKIE, EXTR_SKIP);} if ($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_SKIP);} if ($_POST) {extract($_POST, EXTR_SKIP);} if ($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_SKIP);} if ($_GET) {extract($_GET, EXTR_SKIP);} if ($HTTP_ENV_VARS) {extract($HTTP_ENV_VARS, EXTR_SKIP);} if ($_ENV) {extract($_ENV, EXTR_SKIP);} //---------------------------------- // Sanitize Variables //---------------------------------- if( isset($template) and $template != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $template)){ die("invalid template characters"); } if( isset($archive) and $archive != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $archive)){ die("invalid archive characters"); } if($PHP_SELF == ""){ $PHP_SELF = $_SERVER["PHP_SELF"]; } $phpversion = @phpversion(); $a7f89abdcf9324b3 = ""; $comm_start_from = htmlspecialchars($comm_start_from); $start_from = htmlspecialchars($start_from); $archive = htmlspecialchars($archive); $subaction = htmlspecialchars($subaction); $id = htmlspecialchars($id); $ucat = htmlspecialchars($ucat); if(is_array($category)){ foreach($category as $ckey=>$cvalue){ $category[$ckey] = htmlspecialchars($category[$ckey]);} } else{ $category = htmlspecialchars($category); } $number = htmlspecialchars($number); $template = htmlspecialchars($template); $show = htmlspecialchars($show); $config_version_name = "CuteNews v1.4.6"; $config_version_id = 186; //---------------------------------- // Some Special Chars //---------------------------------- $HTML_SPECIAL_CHARS = Array ( // Master array replaced ALWAYS !!! '”' => '”', '“' => '“', 'œ' => 'œ', '™' => '™', '’' => '’', '‘' => '‘', '‰' => '‰', '…' => '…', '€' => '&euro;', '¡' => '&iexcl;', '¢' => '&cent;', '£' => '&pound;', '¤' => '&curren;', '¥' => '&yen;', '¦' => '&brvb script:InsertIntoArea('$insert_location','$advanced_smile'); return false;\"><img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" /></a>"; $output .= "<a href=# onclick=\"document.getElementById('$insert_location').contentWindow.document.execCommand('InsertImage', false, '$config_http_script_dir/data/emoticons/$smile.gif'); return false;\"><img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" /></a>"; } else{ $output .= "<a href=# onclick=\"java script:document.getElementById('$insert_location').value += ' :$smile:'; return false;\"><img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" /></a>"; } }else{ $output .= "<a href=\"java script:insertext(':$smile:','$insert_location')\"><img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" /></a>"; }; if( isset($break_location) && (int)$break_location > 0 && $i%$break_location == 0 ) { $output .= "<br />"; }else{ $output .= "&nbsp;"; } } return $output; } //////////////////////////////////////////////////////// // Function: replace_comments // Description: Replaces comments charactars function replace_comment($way, $sourse){ global $HTML_SPECIAL_CHARS, $config_allow_html_in_news, $config_allow_html_in_comments, $config_http_script_dir, $config_smilies; $sourse = stripslashes(trim($sourse)); if($way == "add"){ $find = array( "'\"'", "'\''", "'<'", "'>'", "'\|'", "'\n'", "'\r'", ); $replace = array( "&quot;", "'", "&lt;", "&gt;", "|", " <br />", "", ); } elseif($way == "show"){ $find = array( "'\[b\](.*?)\[/b\]'i", "'\[i\](.*?)\[/i\]'i", "'\[u\](.*?)\[/u\]'i", "'\[link\](.*?)\[/link\]'i", "'\[link=(.*?)\](.*?)\[/link\]'i", "'\[quote=(.*?)\](.*?)\[/quote\]'", "'\[quote\](.*?)\[/quote\]'", ); $replace = array( "<strong>\\1</strong>", "<em>\\1</em>", "<span style=\"text-decoration: underline;\">\\1</span>", "<a href=\"\\1\">\\1</a>", "<a href=\"\\1\">\\2</a>", "<blockquote><div style=\"font-size: 13px;\">quote (\\1):</div><hr style=\"border: 1px solid #ACA899;\" /><div>\\2</div><hr style=\"border: 1px solid #ACA899;\" /></blockquote>", "<blockquote><div style=\"font-size: 13px;\">quote:</div><hr style=\"border: 1px solid #ACA899;\" /><div>\\1</div><hr style=\"border: 1px solid #ACA899;\" /></blockquote>", ); $smilies_arr = explode(",", $config_smilies); foreach($smilies_arr as $smile){ $smile = trim($smile); $find[] = "':$smile:'"; $replace[] = "<img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" />"; } } $sourse = preg_replace($find,$replace,$sourse); foreach ( $HTML_SPECIAL_CHARS as $key=>$value ){ $sourse = str_replace($key,$value,$sourse); } return $sourse; } //////////////////////////////////////////////////////// // Function: rteSafe // Description: safe data for the RTE function rteSafe($strText) { //returns safe code for preloading in the RTE $tmpString = $strText; //convert all types of single quotes $tmpString = str_replace(chr(145), chr(39), $tmpString); $tmpString = str_replace(chr(146), chr(39), $tmpString); $tmpString = str_replace("'", "'", $tmpString); //convert all types of double quotes $tmpString = str_replace(chr(147), chr(34), $tmpString); $tmpString = str_replace(chr(148), chr(34), $tmpString); // $tmpString = str_replace("\"", "&quot;", $tmpString); // we are pasting the content within '' quotes so " are valid //replace carriage returns & line feeds $tmpString = str_replace(chr(10), " ", $tmpString); $tmpString = str_replace(chr(13), " ", $tmpString); return $tmpString; } //////////////////////////////////////////////////////// // Function: get_skin // Description: Hello skin! function get_skin($skin){ if(!file_exists('./data/reg.php')){ $stts = base64_decode('KHVucmVnaXN0ZXJlZCk='); } else{ include('./data/reg.php'); if(preg_match('/\\A(\\w{6})-\\w{6}-\\w{6}\\z/', $reg_site_key, $mmbrid)){ if(!isset($reg_display_name) or !$reg_display_name or $reg_display_name == ''){ $stts = "<!-- (-$mmbrid[1]-) -->"; }else{ $stts = "<label title='(-$mmbrid[1]-)'>". base64_decode('TGljZW5zZWQgdG86IA==').$reg_display_name.'</label>'; } } else{ $stts = '!'.base64_decode('KHVucmVnaXN0ZXJlZCk=').'!'; } } $MSN = bd_config('c2tpbg=='); $cr = bd_config('e2NvcHlyaWdodHN9'); $lct = bd_config('PGRpdiBzdHlsZT0nZm9udC1zaXplOiA5cHgnPlBvd2VyZWQgYnkgPGEgc3R5bGU9J2ZvbnQtc2l6ZTogOXB4JyBocmVmPSJodHRwOi8vY3V0ZXBocC5jb20vY3V0ZW5ld3MvIiB0YXJnZXQ9Il9ibGFuayI+Q3V0ZU5ld3MgMS40LjY8L2E+ICZjb3B5OyAyMDA4IDxhIHN0eWxlPSdmb250LXNpemU6IDlweCcgaHJlZj0iaHR0cDovL2N1dGVwaHAuY29tLyIgdGFyZ2V0PSJfYmxhbmsiPkN1dGVQSFA8L2E+Ljxicj57bC1zdGF0dXN9PC9kaXY+'); $lct = preg_replace("/{l-status}/", $stts, $lct); $$MSN = preg_replace("/$cr/", $lct, $$MSN); return $$MSN; } //////////////////////////////////////////////////////// // Function: replace_news // Description: Replaces news charactars function replace_news($way, $sourse, $replce_n_to_br=TRUE, $use_html=TRUE){ global $HTML_SPECIAL_CHARS, $config_allow_html_in_news, $config_allow_html_in_comments, $config_http_script_dir, $config_smilies; $sourse = stripslashes($sourse); if($way == "show") { $find= array( /* 1 */ "'\[upimage=([^\]]*?) ([^\]]*?)\]'i", /* 2 */ "'\[upimage=(.*?)\]'i", /* 3 */ "'\[b\](.*?)\[/b\]'i", /* 4 */ "'\[i\](.*?)\[/i\]'i", /* 5 */ "'\[u\](.*?)\[/u\]'i", /* 6 */ "'\[link\](.*?)\[/link\]'i", /* 7 */ "'\[color=(.*?)\](.*?)\[/color\]'i", /* 8 */ "'\[size=(.*?)\](.*?)\[/size\]'i", /* 9 */ "'\[font=(.*?)\](.*?)\[/font\]'i", /* 10 */ "'\[align=(.*?)\](.*?)\[/align\]'i", /* 12 */ "'\[image=(.*?)\]'i", /* 13 */ "'\[link=(.*?)\](.*?)\[/link\]'i", /* 14 */ "'\[quote=(.*?)\](.*?)\[/quote\]'i", /* 15 */ "'\[quote\](.*?)\[/quote\]'i", /* 16 */ "'\[list\]'i", /* 17 */ "'\[/list\]'i", /* 18 */ "'\[\*\]'i", "'{nl}'", ); $replace=array( /* 1 */ "<img \\2 src=\"${config_http_script_dir}/skins/images/upskins/images/\\1\" style=\"border: none;\" alt=\"\" />", /* 2 */ "<img src=\"${config_http_script_dir}/skins/images/upskins/images/\\1\" style=\"border: none;\" alt=\"\" />", /* 3 */ "<strong>\\1</strong>", /* 4 */ "<em>\\1</em>", /* 5 */ "<span style=\"text-decoration: underline;\">\\1</span>", /* 6 */ "<a href=\"\\1\">\\1</a>", /* 7 */ "<span style=\"color: \\1;\">\\2</span>", /* 8 */ "<span style=\"font-size: \\1pt;\">\\2</span>", /* 9 */ "<span style=\"font-family: \\1;\">\\2</span>", /* 10 */ "<div style=\"text-align: \\1;\">\\2</div>", /* 12 */ "<img src=\"\\1\" style=\"border: none;\" alt=\"\" />", /* 13 */ "<a href=\"\\1\">\\2</a>", /* 14 */ "<blockquote><div style=\"font-size: 13px;\">quote (\\1):</div><hr style=\"border: 1px solid #ACA899;\" /><div>\\2</div><hr style=\"border: 1px solid #ACA899;\" /></blockquote>", /* 15 */ "<blockquote><div style=\"font-size: 13px;\">quote:</div><hr style=\"border: 1px solid #ACA899;\" /><div>\\1</div><hr style=\"border: 1px solid #ACA899;\" /></blockquote>", /* 16 */ "<ul>", /* 17 */ "</ul>", /* 18 */ "<li>", "\n", ); $smilies_arr = explode(",", $config_smilies); foreach($smilies_arr as $smile){ $smile = trim($smile); $find[] = "':$smile:'"; $replace[] = "<img style=\"border: none;\" alt=\"$smile\" src=\"$config_http_script_dir/data/emoticons/$smile.gif\" />"; } } elseif($way == "add"){ $find = array( "'\|'", "'\r'", ); $replace = array( "|", "", ); if($use_html != TRUE){ $find[] = "'<'"; $find[] = "'>'"; $replace[] = "&lt;"; $replace[] = "&gt;"; } if($replce_n_to_br == TRUE){ $find[] = "'\n'"; $replace[] = "<br />"; }else{ $find[] = "'\n'"; $replace[] = "{nl}"; } } elseif($way == "admin"){ $find = array( "''", "'{nl}'", ); $replace = array( "", "\n", ); //this is for 'edit news' section when we use WYSIWYG if(!$replce_n_to_br){$find[] = "'<br />'"; } if(!$replce_n_to_br){$replace[] = "\n"; } } $sourse = preg_replace($find,$replace,$sourse); foreach ( $HTML_SPECIAL_CHARS as $key=>$value ){ $sourse = str_replace($key,$value,$sourse); } return $sourse; } function bd_config($str){ return base64_decode($str); } ?>
  2. desdeinter

    AJUDA NO CUTENEWS

    Olá, onde uso? como faço? não sou muito bom em PHP, mais queria pelo menos instalar este CUTENEWS. Obrigado pela atenção pessoal! :rolleyes: ???????????????????
  3. desdeinter

    AJUDA NO CUTENEWS

    Olá, onde uso? como faço? não sou muito bom em PHP, mais queria pelo menos instalar este CUTENEWS. Obrigado pela atenção pessoal! :rolleyes:
  4. desdeinter

    AJUDA NO CUTENEWS

    como assim??? não entendi,pode me ajudar?? por favor.
  5. desdeinter

    AJUDA NO CUTENEWS

    :wacko: Olá Galera, estou com problema grave ao instalar o cutenews. Usei as "permissões de arquivo" certo, instale certo, mais nada funciona. Após o login.. fica isso no cabeçalho: Deprecated: Function eregi() is deprecated in /home/jethouse/public_html/sistema/inc/functions.inc.php on line 289 Deprecated: Function eregi() is deprecated in /home/jethouse/public_html/sistema/inc/functions.inc.php on line 289 Warning: Cannot modify header information - headers already sent by (output started at /home/jethouse/public_html/sistema/inc/functions.inc.php:289) in /home/jethouse/public_html/sistema/index.php on line 90 Warning: Cannot modify header information - headers already sent by (output started at /home/jethouse/public_html/sistema/inc/functions.inc.php:289) in /home/jethouse/public_html/sistema/index.php on line 96 Warning: Cannot modify header information - headers already sent by (output started at /home/jethouse/public_html/sistema/inc/functions.inc.php:289) in /home/jethouse/public_html/sistema/index.php on line 97 Deprecated: Function eregi() is deprecated in /home/jethouse/public_html/sistema/index.php on line 241 Alguém pode me ajudar?? Tentei com a WebNames empresa da hospedagem, mais não me deram retorno. Valeu.
  6. ################### Clicando em: Nesta página: LINK Deve ser exibido a "galeria de fotos"
  7. Bom, esse botão chama as imagens: <tr> <td width="170" onmouseover="this.style.cursor='hand'" onClick="window.open('exibe_fotos.php?id=<?=$ListingID?>&i=2', '_blank')"><img src="minhas_imagens/<?=$Image2?>"></td> </tr> O arquivo "exibirfotos.php" que deveria mostrar as imagens tem o código: <? ######################################################### require_once("configuracao_mysql.php"); require_once("includes.php"); $q1 = "select * from re2_agents, re2_listings where re2_listings.ListingID = '$_GET[id]' and re2_listings.AgentID = re2_agents.AgentID "; $r1 = mysql_query($q1) or die(mysql_error()); $a1 = mysql_fetch_array($r1); $Image1 = "branco.jpg"; $desc = nl2br($a1[DetailedDesc]); $MyPrice = number_format($a1[Price], 2, ",", "."); $ShowInfo = "<table border=0 align=center width=\"100%\">\n\t<tr>\n\t<td width=\"60%\"> <table><tr><td><img src=tit_detalhes_do_imovel.jpg><br><BR></td></tr></table> <table><tr><Td width=280><b>Endereço:</b> $a1[address]</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>Bairro:</b> $a1[city]</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=280><b>Cidade:</b> $a1[state]</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>Referência:</b> 236-$a1[ListingID]</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=280><b>Dormitórios:</b> $a1[rooms]</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>Garagem:</b> $a1[garage] vaga(s)</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=280><b>Banheiros:</b> $a1[bathrooms]</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>Área:</b> $a1[LotSize]²</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=516><b>Descrição:</b> $desc</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=516><b><font color=red>Valor:</b> R$ $MyPrice</font></td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> <table><tr><Td width=516><b>Vizinhança:</b> $a1[neighbourhood]</td></tr></table> <table><tr><td><img src=divisa.jpg></td></tr></table> </td></tr></table><table>\n\n<tr>\n\t<td width=150 valign=top>"; if($a1[fireplace] == 'y') { $ShowInfo .= "- Tem lareira ou churrasqueira<br>\n"; } if($a1[NearSchool] == 'y') { $ShowInfo .= "- Pr&oacute;ximo a escola<br>\n"; } if($a1[NearTransit] == 'y') { $ShowInfo .= "- Pr&oacute;ximo do tr&acirc;nsito<br>\n"; } if($a1[NearPark] == 'y') { $ShowInfo .= "- Pr&oacute;ximo a parque ou pra&ccedil;a<br>\n"; } if($a1[OceanView] == 'y') { $ShowInfo .= "- Vista para o mar<br>\n"; } if($a1[LakeView] == 'y') { $ShowInfo .= "- Vista para um lago<br>\n"; } if($a1[MountainView] == 'y') { $ShowInfo .= "- Vista para uma montanha<br>\n"; } if($a1[OceanWaterfront] == 'y') { $ShowInfo .= "- De frente para o mar<br>\n"; } if($a1[LakeWaterfront] == 'y') { $ShowInfo .= "- De frente para um lago<br>\n"; } if($a1[RiverWaterfront] == 'y') { $ShowInfo .= "- De frente para um rio<br>\n"; } if(!empty($a1[image])) { $im_array = explode("|", $a1[image]); $FirstImage = "<img src=\"fotos_anuncios/$im_array[0]\" width=100 height=100>"; } if($a1[TipodeConta] == '2') { if(!empty($a1[cellular])) { $int[] = "Celular: $a1[cellular]"; } if(!empty($a1[pager])) { $int[] = "Pager: $a1[pager]"; } if(!empty($int)) { $int2 = implode("<br>", $int); $int2 = "<br>".$int2; } } $ShowInfo .= "</td>\n\t<td align=center valign=top>&nbsp;&nbsp;&nbsp;&nbsp;$FirstImage</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Para maiores informações ligue para <br><font color=red>$a1[phone]$int2</font> ou clique <a target=_blank href=\"contato.php?AgentID=$a1[AgentID]&ListingID=$a1[ListingID]\"><font color=red>aqui</font></a> e solicite informações por e-mail.<br><br><center>"; if(!empty($a1[logo])) { $ShowInfo .= "<img src=\"fotos_anuncios/$a1[logo]\" border=0></a>"; } else { $ShowInfo .= ""; } $ShowInfo .= "</center></td>\n</tr>"; if($a1[AgentID] == $_SESSION[AgentID]) { $ShowInfo .= "<tr>\n\t<td colspan=3 align=center><a class=RedLink href=\"editar.php?id=$a1[ListingID]\">editar</a> | <a class=RedLink href=\"deletar.php?id=$a1[ListingID]\">Deletar</a></td>\n</tr>\n\n"; } $ShowInfo .= "\n</table>"; $MyAddress = str_replace(" ", "+", $a1[address]); $MyAddress = str_replace(",", "", $MyAddress); $Image2 = "ver_fotos.gif"; $Image3 = "<a target=_blank href=\"http://www.mapquest.com/maps/map.adp?city=$a1[city]&state=$a1[state]&address=$MyAddress&country=$a1[country]&zoom=5\"><img src=\"minhas_imagens/mapa.gif\" border=0></a>"; $ListingID = $a1[ListingID]; require_once("templates/PrintHeaderTemplate.php"); require_once("templates/PrintTemplate.php"); require_once("templates/PrintFooterTemplate.php"); ?> LEMBRANDO QUE UM SITE NÃO TEM NADA A VER COM OUTRO. MEU SCRIPT É ESSE LINK, E OUTRO SITE COM O MESMO SCRIPT USA ESTE. Obrigado!!! :blush:
  8. Olá galera, Meu primeiro post aqui no ScriptBrasil. Meu problema é o seguinte. Este link, funciona com um script em PHP no qual estava funcionando corretamente, mais agora não exibe mais as imagens dos "imóveis". A página "exibefotos.php" funcionava identico à este link. Mais agora não exibe mais. Será que alguém pode me ajudar? Eu talvez a solução seja fazer a página novamente sei la. Obrigado! :rolleyes:
×
×
  • Criar Novo...