Нужен раззенденый flashscripts

tanitrel
На сайте с 05.01.2007
Offline
76
583

Помогите плиз найти, раззендить или купить скрипт интернет-магазина _http//www.flashscripts.org/?page=flashshop . Разработчик на связь не выходит уже месяц пишу и все ни как и через сайт и через форум, а надо позарез!!!

Мы живем так, как будто никогда не умрем, А умираем так, как будто никогда не жили…
mcbes
На сайте с 25.12.2007
Offline
7
#1

Тоже позарез НУЖНО! ХОТЬ КТОНИБУДЬ!

Weekend
На сайте с 21.07.2006
Offline
152
#2

Вроде есть и получше магазины. Не вижу ничего в нем особеного.

Сайты не делаю. Заказы не принимаю.
Varkolak
На сайте с 03.06.2005
Offline
174
#3

Видимо людям не нужен богатый функционал.

html/css/js верстка и разработка сайтов на hostcms (хостцмс) - skype: varkolak1, тел: 89675012935, e-mail: anton.yurzanov@gmail.com
[Удален]
#4

давайте мне! сделаю! ваша цена и скрипт в личку

KosoyRoman добавил 21.02.2008 в 18:44

расзендил, сколько даешь за него? :)

KosoyRoman добавил 22.02.2008 в 00:15

да ладно не партесь парни :) держите наздоровье :)

functions.php

<?php


function parse_tpl( $tpl, $vars )
{
preg_match_all( "|{{([0-9a-z_ ]*?)(\\(.*?\\))?}}|si", $tpl, $matches );
foreach ( $matches[1] as $i => $k )
{
if ( substr( $k, 0, 10 ) == "if_exists " )
{
if ( trim( $vars[substr( $k, 10 )] ) == "" )
{
$tpl = preg_replace( "|{{".$k."}}.*?{{end ".$k."}}|si", "", $tpl );
}
else
{
$tpl = str_replace( "{{".$k."}}", "", $tpl );
$tpl = str_replace( "{{end ".$k."}}", "", $tpl );
}
unset( $matches[1][$i] );
}
if ( substr( $k, 0, 14 ) == "if_not_exists " )
{
if ( trim( $vars[substr( $k, 14 )] ) != "" )
{
$tpl = preg_replace( "|{{".$k."}}.*?{{end ".$k."}}|si", "", $tpl );
}
else
{
$tpl = str_replace( "{{".$k."}}", "", $tpl );
$tpl = str_replace( "{{end ".$k."}}", "", $tpl );
}
unset( $matches[1][$i] );
}
if ( 0 < strpos( $tpl, "{{end ".$k."}}" ) && is_array( $vars[$k] ) )
{
$replace = "";
$tpl1 = substr( $tpl, strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ) + strlen( "{{".$k.$matches[2][$i]."}}" ), strpos( $tpl, "{{end ".$k."}}" ) - strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ) - strlen( "{{".$k.$matches[2][$i]."}}" ) );
if ( trim( $matches[2][$i] ) != "" )
{
$params = trim( $matches[2][$i], "()" );
preg_match( "|([0-9]*),(.*)|si", $params, $matches1 );
$n = ( integer );
$delimiter = $matches1[2];
$delimiter = trim( $delimiter, "\"'" );
}
$cnt = 0;
$cnt_all = 0;
foreach ( $vars[$k] as $v )
{
++$cnt_all;
++$cnt;
$replace .= parse_tpl( $tpl1, $v );
if ( !( $cnt == ( integer ) ) || !( $cnt_all < count( $vars[$k] ) ) )
{
$replace .= $delimiter;
$cnt = 0;
}
}
$tpl = str_replace( substr( $tpl, strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ), strpos( $tpl, "{{end ".$k."}}" ) + strlen( "{{end ".$k."}}" ) - strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ) ), $replace, $tpl );
unset( $matches[1][$i] );
}
else if ( 0 < strpos( $tpl, "{{end ".$k."}}" ) )
{
$tpl = str_replace( substr( $tpl, strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ), strpos( $tpl, "{{end ".$k."}}" ) + strlen( "{{end ".$k."}}" ) - strpos( $tpl, "{{".$k.$matches[2][$i]."}}" ) ), "", $tpl );
unset( $matches[1][$i] );
}
}
foreach ( $matches[1] as $i => $k )
{
if ( isset( $vars[$k] ) )
{
$tpl = str_replace( "{{".$k.$matches[2][$i]."}}", $vars[$k], $tpl );
unset( $matches[1][$i] );
}
}
return $tpl;
}

function show_main( )
{
global $vars;
global $_conf;
$tpl = file_get_contents( "tpl/main.htm" );
$copyright = @file_get_contents( @"http://www.flashscripts.org/copyright.php?mode=shop&catalog=".@urlencode( @$_SERVER[HTTP_HOST].@$_SERVER[REQUEST_URI] ) );
if ( 0 < strpos( "_".$tpl, "{{authors_link}}" ) )
{
$tpl = str_replace( "{{authors_link}}", $copyright, $tpl );
}
else if ( 0 < strpos( "_".$tpl, "</body>" ) )
{
$tpl = str_replace( "</body>", "<center>".$copyright."</center> </body>", $tpl );
}
else
{
$tpl .= " <center>".$copyright."</center>";
}
$tpl = parse_tpl( $tpl, $vars );
$tpl = preg_replace( "|{{.*?}}|si", "", $tpl );
echo $tpl;
}

function listpages( $href, $total, $os, $rpp, $limit = 15 )
{
$page = floor( $os / $rpp ) + 1;
$pages = ceil( $total / $rpp );
$_start = max( 0, $page - max( ceil( $limit / 2 ), $page - $pages + $limit ) ) + 1;
$_finish = min( $pages, $_start + $limit - 1 );
if ( $qs && $qs[0] != "?" )
{
$qs = "?".$qs;
}
if ( $rpp < $total )
{
$i = $_start;
for ( ; $i <= $_finish; ++$i )
{
if ( $i != $_start )
{
$ret .= "&nbsp;|&nbsp;";
}
if ( $i != $page )
{
$ret .= str_replace( array( "%os%", "%link%" ), array( ( $i - 1 ) * $rpp, $i ), $href );
}
else
{
$ret .= "<strong>".$i."</strong>";
}
}
}
return $ret;
}

function alert( $txt )
{
echo "<script language=JavaScript>alert('".$txt."');</script>";
}

function get_categories( $parent_id, $categories )
{
global $_conf;
$res = mysql_query( "SELECT * FROM ".$_conf[table_prefix]."categories WHERE parent_id='".( integer )."' ORDER BY pos" );
while ( $row = mysql_fetch_array( ) )
{
if ( 0 < count( $categories ) )
{
$categories[$parent_id]['ls'][$row[id]] = array( "name" => $row[name], "ls" => array( ) );
}
else
{
$categories[$row[id]] = array( "name" => $row[name], "ls" => array( ) );
}
$categories = get_categories( $row[id], $categories );
}
return $categories;
}

function get_categories_select( $parent_id, $value = 0, $parent_cat_str = "" )
{
global $_conf;
$content = "";
$res = mysql_query( "SELECT * FROM ".$_conf[table_prefix]."categories WHERE parent_id='".( integer )."' ORDER BY pos" );
while ( $row = mysql_fetch_array( $res ) )
{
if ( $row[id] == $value )
{
$content .= "<option selected value=\"".$row[id]."\">".( trim( $parent_cat_str ) == "" ? "" : $parent_cat_str." >> " ).$row[name];
}
else
{
$content .= "<option value=\"".$row[id]."\">".( trim( $parent_cat_str ) == "" ? "" : $parent_cat_str." >> " ).$row[name];
}
$parent_cat_str_t = $parent_cat_str;
$parent_cat_str = ( trim( $parent_cat_str ) == "" ? "" : $parent_cat_str." >> " ).$row[name];
$content .= get_categories_select( $row[id], $value, $parent_cat_str );
$parent_cat_str = $parent_cat_str_t;
}
return $content;
}

function get_all_subcategories( $parent_id, $subcategories = null )
{
global $_conf;
if ( is_null( $subcategories ) )
{
$subcategories = array( );
}
$res = mysql_query( "SELECT id FROM ".$_conf[table_prefix]."categories WHERE parent_id=".( integer ) );
while ( $row = mysql_fetch_array( $res ) )
{
if ( in_array( $row[id], $subcategories ) )
{
$subcategories[] = $row[id];
$subcategories = get_all_subcategories( $row[id], $subcategories );
}
}
return $subcategories;
}

?>
Сергей Кизим
На сайте с 05.03.2006
Offline
159
#5
KosoyRoman:
держите наздоровье :)

Это просто неправленный дезенд?

VZ
На сайте с 16.09.2007
Offline
40
#6
siarzhuk:
Это просто неправленный дезенд?

Нет, просто при дезенде корежатся массивы и логические конструкции. Так что после дезенда дебаг обязателен :). Шара-с непроходит.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий