php question help!

  • Started
  • Last post
  • 5 Responses
  • Claymantis

    I doing a quick update to a site, that has a video embed into the page.

    But I can not find where its embed because the page its on is built with PHP.

    <?php $dir = "."; include ($dir."/includes/cx_before.php"); $mm=1; $sm=get_input('sm',0); $keywords = "Keypo"; $titles="Keypo"; $description="Keypo"; require("get_logged_user.php"); $accept = get_input("accept", 0); if($accept==1) { $csettings = new CSettings(); $csettings -> getAdminSettings();

    $display_cuser -> activateUser();
    $display_cuser -> getUserByID($display_cuser ->uid);
    $CAuth -> reload_user_details($display_cus...

    send_note(NEW_PROFILE_EMAIL_ALER... NEW_PROFILE_EMAIL_ALERT, "Invited User Accepted", "Invited User Accepted: {$display_cuser -> first_name} {$display_cuser -> last_name} ", "Invited User Accepted: {$display_cuser -> first_name} {$display_cuser -> last_name} ");

    header("Location: settings.php");
    die();
    }
    if($accept==2)
    {
    $display_cuser -> updateUser(array("status" => USER_STATUS_DECLINED));
    $CAuth -> logout();
    header("Location: index.php");
    die();
    }

    if($accept==3)
    {
    $content_page =draw_accept_page_2($display_cus...
    }
    elseif($accept==4)
    {
    $content_page =draw_accept_page_4($display_cus...
    }
    else
    {

    if($display_cuser -> status == USER_STATUS_ACTIVE&&$_SERVER["HT...
    {
    header("Location: index.php");
    die();
    }

    $content_page = draw_accept_page($display_cuser...

    }

    echo $content_page;

  • Claymantis0

    Does any one see where I can track down the HTML ? thanks so much

  • vaxorcist0

    index.php, and/or some functions like draw_accept_page_2 which is probably in annother page.... check all the "include" files...

    in PHP, the HTML code is often embedded in the middle of the PHP, and/or they may use a templating system like smarty, but one thing about PHP is that there a alot of different ways to do something, so picking up a project from somebody else may require you to read their mind as well as their code....

  • vaxorcist0

    if you can do a multi-file search for the filename of the video that's embedded, that might help a lot.... or search for vimeo,etc......

    i.e. search the whole directory and all sub-directories for whatever the video is named....

  • jadrian_uk0

    Understand the architecture of the site, check out how it's folders are organized then you'll find the embed tag, not really a php question.

  • Claymantis0

    Found it!

    It was in a function_draw.php... include folder!

    Thanks again