Collapse
No announcement yet.
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnC website programming fail.

    #1
    View the source on the commandandconquer.com main page.

    <?php
    $seo_keytags = "";
    $seo_description = "";
    if(empty($seo_keytags)) {
    $seo_keytags = "Command &amp; Conquer, C&amp;C, CnC, Command &amp; Conquer 4, C&amp;C 4, CnC 4, C&amp;C4, CnC4, Electronic Arts, EA, Kane, GDI, NOD";
    }
    if(empty($seo_description )) {
    $seo_description = "EA Los Angeles is bringing the award-winning Tiberium series to an epic conclusion with Command &amp;amp; Conquer 4.";
    }
    ?>

    <head>


    <meta name="author" content="Electronic Arts" />
    <meta name="language" content="en" />
    <meta name="robots" content="index, follow" />
    <meta name="keywords" content="<?php echo($seo_keytags); ?>">
    <meta name="description" content="<?php echo($seo_keytags); ?>">

    I think that's a fail. I'm quickly loosing interest in everything CnC now =(

  • #2
    They mixed up a variable?

    Comment


    • #3
      And it is Nod, not NOD ... goddamnit.

      Comment


      • #4
        I wonder when will they work on the login page? Try looking at that too and see what you'd find.

        Comment


        • #5
          Originally posted by TheAngel View Post
          View the source on the commandandconquer.com main page.

          <?php
          $seo_keytags = "";
          $seo_description = "";
          if(empty($seo_keytags)) {
          $seo_keytags = "Command &amp; Conquer, C&amp;C, CnC, Command &amp; Conquer 4, C&amp;C 4, CnC 4, C&amp;C4, CnC4, Electronic Arts, EA, Kane, GDI, NOD";
          }
          if(empty($seo_description )) {
          $seo_description = "EA Los Angeles is bringing the award-winning Tiberium series to an epic conclusion with Command &amp;amp; Conquer 4.";
          }
          ?>

          <head>


          <meta name="author" content="Electronic Arts" />
          <meta name="language" content="en" />
          <meta name="robots" content="index, follow" />
          <meta name="keywords" content="<?php echo($seo_keytags); ?>">
          <meta name="description" content="<?php echo($seo_keytags); ?>">

          I think that's a fail. I'm quickly loosing interest in everything CnC now =(
          Hahaha, uninterpreted php code. That's a fail allright, luckily the code only sets some keywords and description for search engines.

          Comment


          • #6
            Its things like these that show you how often people use a parser to go over their work

            Comment


            • #7
              i have no idea what is been discussed here, or why it matters

              Comment


              • #8
                just a minor error in the language the website makers made that someone is picking apart

                Comment


                • #9
                  This made me think , Wtf Do some people look at?

                  Comment


                  • #10
                    Originally posted by hellodean View Post
                    i have no idea what is been discussed here, or why it matters
                    Except for this, I agree...

                    Originally posted by Feloidea View Post
                    And it is Nod, not NOD ... goddamnit.

                    Could someone explain to us non-programmers?

                    Comment


                    • #11
                      Originally posted by TheAngel View Post
                      View the source on the commandandconquer.com main page.

                      <?php
                      $seo_keytags = "";
                      $seo_description = "";
                      if(empty($seo_keytags)) {
                      $seo_keytags = "Command & Conquer, C&C, CnC, Command & Conquer 4, C&C 4, CnC 4, C&C4, CnC4, Electronic Arts, EA, Kane, GDI, NOD";
                      }
                      if(empty($seo_description )) {
                      $seo_description = "EA Los Angeles is bringing the award-winning Tiberium series to an epic conclusion with Command &amp; Conquer 4.";
                      }
                      ?>

                      <head>


                      <meta name="author" content="Electronic Arts" />
                      <meta name="language" content="en" />
                      <meta name="robots" content="index, follow" />
                      <meta name="keywords" content="<?php echo($seo_keytags); ?>">
                      <meta name="description" content="<?php echo($seo_keytags); ?>">

                      I think that's a fail. I'm quickly loosing interest in everything CnC now =(
                      @Klandri:

                      That's what I meant

                      Comment


                      • #12
                        Originally posted by Klandri View Post
                        Except for this, I agree...




                        Could someone explain to us non-programmers?

                        Ok. When you rightclick a page and select VIEW SOURCE you usually see HTML, basically just stuff that makes up a page. Now, pages can be either static or dynamic. Static means the webserver just holds HTML files which are sent to you and displayed in your browser. Nothing special going on there.

                        Dynamic means the page is compiled/interpreted and the result (in HTML) is send to you. So basically the webserver holds programming code and whenever you request a page, the server executes the code and sends you the result.

                        The fail here is that they use PHP code, but didn't configure the webserver properly. So the bare programmingcode is visible in the source instead of the result.

                        The code in question doesnt do much though, so nothing to worry about.

                        Comment


                        • #13
                          Originally posted by Feloidea View Post
                          @Klandri:

                          That's what I meant
                          Knew that one...

                          Originally posted by Kiswabengbeng View Post
                          Ok. When you rightclick a page and select VIEW SOURCE you usually see HTML, basically just stuff that makes up a page. Now, pages can be either static or dynamic. Static means the webserver just holds HTML files which are sent to you and displayed in your browser. Nothing special going on there.

                          Dynamic means the page is compiled/interpreted and the result (in HTML) is send to you. So basically the webserver holds programming code and whenever you request a page, the server executes the code and sends you the result.

                          The fail here is that they use PHP code, but didn't configure the webserver properly. So the bare programmingcode is visible in the source instead of the result.

                          The code in question doesnt do much though, so nothing to worry about.
                          And this is what I was looking for, thank you.

                          Comment

                          X