Sunday, April 18, 2010

PSD to HTML

http://csshowto.com/layout/psd-to-csshtml-in-easy-steps-part-1/

Wednesday, December 16, 2009

Photoshop

Basics

http://www.we-r-here.com/ps/index.htm

http://www.photoshop-plus.co.uk/2012/06/05/working-more-quicker-and-more-efficiently-in-photoshop/

Random Tutorials

http://www.tutorialized.com/tutorials/Photoshop/1

Create  a rectangle outline
  1. select rectangle tool in tool bar
  2. click workpath with pen(second one) from top tool bar
  3. draw rectangle  dragging mouse
  4. Ctrl ENTER
  5. Select Edit > >  Stroke
  6. Set width and color
  7. Ctrl D to deselect
Drawing glowing rays

http://www.psdgraphics.com/tutorials/windows-7-wallpaper-photoshop-tutorial/2/
    Blend modes:http://www.northlite.net/ps/blend.htm

      Friday, November 27, 2009

      xcart

      database values are in config.php

      # $sql_host - DNS name or IP of your MySQL server;
      # $sql_user - MySQL user name;
      # $sql_db - MySQL database name;
      # $sql_password - MySQL password.



      usual work flow of authenicated pages is
      require "./auth.php";
      auth.php  includes the following

      @include_once "./top.inc.php";
      @include_once "../top.inc.php";
      @include_once "../../top.inc.php";
      if (!defined('DIR_CUSTOMER')) die("ERROR: Can not initiate application! Please check configuration.");

      require_once $xcart_dir."/init.php";

      important function x_load defined in include/func/func.core.php
      it includes file like this
      x_load("backoffice");
      includes include/func/func.backoffice.php

      template engine is smarty

      Password encryption is done in function text_crypt in includes/funct/func.crypt.php

      Thursday, November 12, 2009

      Wednesday, November 11, 2009

      Jomsocial

      documentation(http://www.jomsocial.com/docs.html)
      FAQ(http://www.jomsocial.com/docs/Pre_sales_FAQ)
      demo(http://www.jomsocial.com/community.html)

      user perspective http://www.jomsocial.com/docs/User_guide
      the following are the main functionalities available in default jomsocial component in users perpective
      1.add as friend
      2.add photos
      3.add videos
      4.write a private message
      5.list friends
      6.edit profile,change profile photo
      7.configure privacy settings
      8.show my updates to others
      9.create group
      10.wall
      11.adjust, arrange, remove, applications (http://www.jomsocial.com/docs/List_of_Applications)

      Monday, November 9, 2009

      Possible attacks on and from websites

      Iframe Attack

      Solution
      change permission of  php, htm, html , js and css files  to 444
      If you need to edit any file, first change its permission to 655
      once you completed the changes
       set the permission back to 444

      also check for joomla

      Bloodhound exploits  , link2

      htaccess,mod rewrite tips

      if your intention to code and decode mod_rewrite urls and handle it with php and mysql ,this should work

      to convert to url
      $url = preg_replace('/[^A-Za-z0-9_-]+/', '-', $string);


      And to check in mysql with the url value,use the same expression discounting '-'.first replace the url value  with php using preg_replace  and use with mysql REGEXP

      $sql = "select * from table where fieldname_to_check REGEXP '".preg_replace("/-+/",'[^A-Za-z0-9_]+',$url)."'"

      http://www.freewebmasterhelp.com/tutorials/htaccess/

      Error display
      php_flag display_errors on
      #E_ALL ^ E_NOTICE
      php_value error_reporting 2039

      condtional flag settings based on php version

      # PHP configuration values

      < IfModule mod_php5.c >
        php_flag register_long_arrays On
        php_flag register_globals On
        php_flag display_errors Off
      < /IfModule >

      < IfModule mod_php4.c >
        php_value session.use_trans_sid 0
        php_value register_globals 1
        php_flag display_errors On
        php_flag track_errors Off
      < /IfModule >

      enabling url rewrite
      RewriteEngine On
      RewriteBase /

      check for hostname
      #RewriteCond %{HTTP_HOST} ^myhostname\.com
      #RewriteRule (.*) http://www.myhostname.com/$1 [R=301,L] 


      Check for Query string
      RewriteCond %{QUERY_STRING} ^options\=(.*)$
      RewriteRule ^(.*)-p-(.*).html$ script.php?var=$2&%{QUERY_STRING}

      Rewrite  for file name
      RewriteRule ^(.*)-p-(.*).html$ redirect.php?var=$2%1

      Rewrite based on browser
      RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
      RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]



      password protection
      http://www.freewebmasterhelp.com/tutorials/htaccess/3