Click here to Skip to main content
15,890,512 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: MVC WebAPI Controller Parameter Null Pin
Kevin Marois16-Apr-14 5:59
professionalKevin Marois16-Apr-14 5:59 
QuestionHelp with mysql duplicate row Pin
Izu Great26-Mar-14 0:54
professionalIzu Great26-Mar-14 0:54 
AnswerRe: Help with mysql duplicate row Pin
Kornfeld Eliyahu Peter26-Mar-14 1:02
professionalKornfeld Eliyahu Peter26-Mar-14 1:02 
GeneralRe: Help with mysql duplicate row Pin
Izu Great26-Mar-14 1:07
professionalIzu Great26-Mar-14 1:07 
AnswerRe: Help with mysql duplicate row Pin
ZurdoDev27-Mar-14 10:14
professionalZurdoDev27-Mar-14 10:14 
AnswerRe: Help with mysql duplicate row Pin
stevic9-Apr-14 7:07
professionalstevic9-Apr-14 7:07 
QuestionDecode or deobfuscate php Pin
Mahdi 8216102118-Mar-14 23:10
Mahdi 8216102118-Mar-14 23:10 
AnswerRe: Decode or deobfuscate php Pin
Richard Deeming19-Mar-14 2:56
mveRichard Deeming19-Mar-14 2:56 
I couldn't eliminate all of the Unicode characters, but this should get you started:
PHP
<?php

if(!iflogin())
{
    redirect("login", false, true);
}

$theme = str_replace("{ScrolTit}", "ثبت آگهی", $theme);
_del_block('Ara_Home');
_del_block('AraMehr');

$title = ":: ثبت آگهی جدید ::";

$Cats_Er = _cats("fa", null, null, 'state');

$User = add_notag_to_db($_SESSION['user']);
$UserId = _int_exp($_SESSION['userid']);

$Select = mysql_query("select crash,fullname,tell from `users` where `lang` = '{$Template_Lang}' and `email` = '{$User}' limit 1");
if($Row = mysql_fetch_assoc($Select))
{
    $FullName = out_in_db($Row['fullname']);
    $Tell = out_in_db($Row['tell']);
    $Crash = number_format($Row['crash']);
    $Crash_User = $Row['crash'];
}
else
{
    $Crash = 0;
    $FullName = "";
    $Tell = "";
}

$cATEgORYs = _cats("fa");
$Cats_Er_s = $Cats_Er;

$page_theme = read_file('newads');
$Pm = "لطفا اطلاعات خواسته شده را به درستی وارد نمائید";

if($_POST['newads'] == 1)
{
    $FullName = isset($_POST['fullname'])?add_notag_to_db($_POST['fullname']):"";
    $Tell = isset($_POST['tell'])?add_notag_to_db($_POST['tell']):"";
    $Type = isset($_POST['type'])?strtolower(add_notag_to_db($_POST['type'])):"";
    $Pakage = isset($_POST['pakages'])?_int_exp($_POST['pakages']):0;
    $Star = isset($_POST['star'])?_int_exp($_POST['star']):0;
    $State = isset($_POST['state'])?_int_exp($_POST['state']):0;
    $Cat = isset($_POST['cat'])?_int_exp($_POST['cat']):0;
    $Fax = isset($_POST['fax'])?add_notag_to_db($_POST['fax']):"";
    $Title = isset($_POST['title'])?add_notag_to_db($_POST['title']):"";
    $Link = isset($_POST['link'])?add_notag_to_db($_POST['link']):"";
    $Fee = isset($_POST['fee'])?_int_exp($_POST['fee']):"";
    $Describtion = isset($_POST['describtion'])?add_notag_to_db($_POST['describtion']):"";
    $Address = isset($_POST['address'])?add_notag_to_db($_POST['address']):"";
    $Keyword = isset($_POST['keywords'])?add_notag_to_db($_POST['keywords']):"";
    
    $Ads_Pic = $_FILES['pic'];
    $Ads_Gallery = $_FILES['gallery'];

    $cATEgORYs = str_replace("id=\"category\" value=\"{$Cat}\"", "id=\"category\" value=\"{$Cat}\" selected=\"selected\"", $cATEgORYs);
    $Cats_Er_s = str_replace("id=\"state\" value=\"{$State}\"", "id=\"state\" value=\"{$State}\" selected=\"selected\"", $Cats_Er_s);

    $Pm = '';

    if(empty($Type) or !in_array($Type, $TArray))
        $Pm .= "<span>گروه آگهی انتخاب نشده</span><br>";

    if(!_check_pakage_type($Pakage, $Type) and $Type != 'free')
    {
        $Pm .= "<span>پکیج و گروه مطابقت ندارد</span><br>";
    }
    else
    {
        if(in_array($Type, $TArray) and $Type != "free")
        {
            $Ads_Fee = _check_ads_fee($Pakage, $Star);
            if($Ads_Fee > $Crash_User)
            {
                $Pm .= "<span>موجودی شما کافی نمی باشد</span><br>";
            }

            if($Ads_Pic['size']>($Row_Setting['file_size']*1024))
            {
                $Pm .= "<span>حجم عکس های ارسالی نباید بیشتر از {$Row_Setting['file_size']} کیلوبایت باشد</span><br>";
            }

            if($Ads_Pic['size']>0)
            {
                $Ads_Type = end(explode(".", $Ads_Pic['name']));
                $Suport_pic = explode("\n", $Row_Setting['format_up']);
                $Suport_pic = explode(",", $Suport_pic[0]);

                if(!in_array($Ads_Type, $Suport_pic))
                    $Pm .= "<span>فرمت عکس ارسالی پشتیبانی نمی شود</span><br>";
            }
        }
        else
        {
            $Link = '';
        }
    }

    if(empty($FullName))
        $Pm .= "<span>نام و نام خانوادگی وارد نشده</span><br>";

    if(empty($Cat))
        $Pm .= "<span>دسته بندی انتخاب نشده</span><br>";

    if(empty($State))
        $Pm .= "<span>منطقه انتخاب نشده</span><br>";

    if(empty($Title))
        $Pm .= "<span>عنوان وارد نشده</span><br>";

    if(empty($Describtion))
        $Pm .= "<span>توضیحات وارد نشده</span><br>";

    if(!strlen($Pm)>0)
    {
        $_SESSION['ads'] = _int_exp($_SESSION['ads']);
        if(!($_SESSION['ads']>0))
        {
            if(_add_ads($UserId, $Title, $Keyword, $Describtion, $FullName, $Link, $Fee, $Tell, $Fax, $Address, $Type, $Pakage, $Cat, $State, $Star, $Ads_Pic, $Ads_Gallery))
            {
                $page_theme = _show_error("تبلیغ مورد نظر با موفقیت در سیستم ثبت گردید", "error_green");
                $_SESSION['ads'] = _int_exp($_SESSION['ads'])+1;
            }
            else
            {
                $Pm = "<span>مشکلی در ثبت تبلیغ به وجود آمد لطفا دوباره سعی کنید</span>";
            }
        }
        else
            $page_theme = _show_error("درخواست فوق تکراری می باشد", "error_red")._redirec_time('newads', 1000);
    }
}
else
    $_SESSION['ads'] = 0;


$page_theme = str_replace(array("{Pm}", "{CRASH}", "{CATEGORY}", "{FullName}", "{STATES}", "{TELL}", "{FAX}", "{TITLE}", "{FEE}", "{LINK}", "{KEYWORD}", "{DESCRIB}", "{ADDRESSES}"), array($Pm, $Crash, $cATEgORYs, $FullName, $Cats_Er_s, $Tell, $Fax, $Title, $Fee, $Link, $Keyword, $Describtion, $Address), $page_theme);

$Cats_Er_s = '';

?>




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 4:35
Mahdi 8216102121-Mar-14 4:35 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 5:01
mveRichard Deeming21-Mar-14 5:01 
GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 5:14
Mahdi 8216102121-Mar-14 5:14 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 5:26
mveRichard Deeming21-Mar-14 5:26 
GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 5:30
Mahdi 8216102121-Mar-14 5:30 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 6:01
mveRichard Deeming21-Mar-14 6:01 
Questionwhich backend technology for an advanced messaging application? Pin
chronodekar18-Mar-14 21:05
chronodekar18-Mar-14 21:05 
AnswerRe: which backend technology for an advanced messaging application? Pin
Dar Brett24-Mar-14 19:50
Dar Brett24-Mar-14 19:50 
GeneralRe: which backend technology for an advanced messaging application? Pin
chronodekar7-Apr-14 5:58
chronodekar7-Apr-14 5:58 
AnswerRe: which backend technology for an advanced messaging application? Pin
stevic9-Apr-14 7:11
professionalstevic9-Apr-14 7:11 
QuestionFacebook share button is not working Pin
Member 803236014-Mar-14 21:47
Member 803236014-Mar-14 21:47 
AnswerRe: Facebook share button is not working Pin
Blikkies17-Mar-14 3:50
professionalBlikkies17-Mar-14 3:50 
AnswerRe: Facebook share button is not working Pin
stevic9-Apr-14 7:14
professionalstevic9-Apr-14 7:14 
QuestionHow to playing song in the mobil devices with my ASP Pin
famontepeque13-Mar-14 10:53
famontepeque13-Mar-14 10:53 
SuggestionRe: How to playing song in the mobil devices with my ASP Pin
Richard Deeming14-Mar-14 2:15
mveRichard Deeming14-Mar-14 2:15 
QuestionRazor - render to "js" files as supposed to "cshtml"? Pin
Swab.Jat13-Mar-14 2:13
Swab.Jat13-Mar-14 2:13 
QuestionChrist the redeemer Pin
Rich.Edwards10-Mar-14 22:55
Rich.Edwards10-Mar-14 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.