அமெரிக்காவின் குடியேற்ற சீர்திருத்த மசோதாவால் இந்திய ஐ.டி. நிறுவனங்களுக்கு வரும் ஆபத்து
அமெரிக்காவில் கொண்டு வரப்பட இருக்கிற குடியேற்ற சீர்திருத்த மசோதாவால் இந்திய ஐ.டி. நிறுவனங்களுக்கு பெரும் ஆபத்து காத்துக் கொண்டு இருக்கிறது. இந்த மசோதா நிறைவேறினால் இந்திய தகவல் தொழில்நுட்ப நிறுவனங்களுக்கு மிகப்பெரிய பாதிப்பு ஏற்படும் என்ற அச்சம் தற்போது எழுந்துள்ளது. குடியேற்ற சீர்திருத்த மசோதாவில் புதிதாக சேர்க்கப்பட இருக்கும் 8 அம்சங்கள் தான் இதற்கு காரணம். இந்த மசோதா நிறைவேறினால் வரும் பாதிப்புகள்.
1.ஐ.டி. நிறுவனங்கள் ஹெச்-1பி விசாவில் பணிபுரியும் பணியாளர்களை தங்களுடைய வாடிக்கையாளரின் பணியிடத்தில் பணியில் ஈடுபடுத்தவோ, அந்தக் குறிப்பிட்ட பணிக்காக ஒப்பந்த அடிப்படையில் பணியாளர்களை நியமிக்கவோ தடை விதிக்கப்படும்.
2.வேலைக்கு அனுப்பும் எல்-1 தொழிலாளர்களை இந்திய நிறுவனங்கள் மேற்பார்வையிடுவதோடு கட்டுப்படுத்த வேண்டும். அந்த தொழிலாளர்களுக்கான அமெரிக்க நிறுவனம் 90 நாட்களுக்கு முன் மனு தாக்கல் செய்ய வேண்டும். அந்த மனுவில் அதே பகுதியில் உள்ள எந்த ஒரு பணியாளர்களையும் ஆட்குறைப்பு செய்யவில்லை என உறுதி அளிக்க வேண்டும்.
3.ஹெச்-1பி மற்றும் எல்-1 தொழிலாளர்களின் மொத்த எண்ணிக்கைக்கு கட்டுப்பாடு விதிக்கிறது. இந்த குடியேற்ற மசோதாவின் கீழ் அமெரிக்க நிறுவனத்தில் மொத்தமாக உள்ள ஹெச்-1பி மற்றும் எல்-1 தொழிலாளர்களின் சதவீதத்திற்கு ஒரு எல்லையை நிர்ணயிக்கலாம்.
4.மூன்று கட்டங்களாக செயல்படுத்தப்பட உள்ள இந்த மசோதா, அக்டோபர் 1, 2014 முதல் செப்டம்பர் 30, 2015 வரையிலான காலகட்டங்களில் ஹெச்-1பி மற்றும் எல்-1 தொழிலாளர்களின் அதிகபட்ச விகிதம் 75 சதவீதமாகவும், அக்டோபர் 1, 2015ல் இருந்து செப்டம்பர் 30, 2016 வரை 65 சதவீதமாகவும், அக்டோபர் 1, 2016க்கு பிறகு 50 சதவீதமாகவும் இருக்க வேண்டும் என நிர்ணயித்துள்ளது
Important security bulletin for WordPress users
A large distributed brute force attack against WordPress websites is understood to be occurring recently across the internet. A large botnet with thousands of attacking servers is attempting to log in by cycling through different usernames and passwords to get into the WordPress Admin dashboard. This is a global attack which is affecting thousands of servers globally.
To ensure that your websites are secure and safeguarded from this attack, we recommend the following steps to be implemented immediately if you are using WordPress:
1) Update your WordPress installation to the latest available version. If you have any plugins and themes installed under WordPress, please make sure that you update them to the latest version as well.
2) Use a strong alphanumeric password for your WordPress Admin login. You can use a password generator like http://www.strongpasswordgenerator.com
3) Password protect the WordPress admin directory (wp-admin) so that it will have an additional protection. You can do that through cPanel > Security > Password Protect Directories
Note: If it breaks the Ajax functionality or shows 404 errors in the dashboard, you may have to add the following in .htaccess file:
Order allow,deny
Allow from all
Satisfy any
4) If you have a static IP address, you can lock down the WordPress Admin access using .htaccess file with the following rules:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/wp-admin$
RewriteCond %{REMOTE_ADDR} !^72\.72\.72\.72$ [OR]
RewriteCond %{REMOTE_ADDR} !^72\.72\.72\.73$ [OR]
RewriteCond %{REMOTE_ADDR} !^72\.72\.72\.74$
RewriteRule ^(.*)$ – [R=403,L]
(Replace 72.72.72.72, 72.72.72.73, 72.72.72.74 with your actual PC IPs)
5) Install security plugins like:
http://wordpress.org/extend/plugins/limit-login-attempts/
http://wordpress.org/extend/plugins/better-wp-security/
Payment System with Paypal
I received a tutorial requests from my reader that asked to me how to implement payment gateway system with Paypal API. In this post I want to explain how to work with Paypal Sandbox test accounts for payment system development and sending arguments while click buy now button. It’s simple and very easy to integrate in your web projects.
Sample database design for Payment system. Contains there table users,products and sales.
Users
`uid` int(11) AUTO_INCREMENT PRIMARY KEY,
`username` varchar(255) UNIQUE KEY,
`password` varchar(255),
`email` varchar(255) UNIQUE KEY,
)
Products
(
`pid` int(11) AUTO_INCREMENT PRIMARY KEY,
`product` varchar(255),
‘product_img` varchar(100),
`price` int(11),
`currency` varchar(10),
)
Sales
(
`sid` int(11) AUTO_INCREMENT PRIMARY KEY,
`pid` int(11),
`uid` int(11),
`saledate` date,
`transactionid` varchar(125),
FOREIGN KEY(uid) REFERENCES users(uid),
FOREIGN KEY(pid) REFERENCES products(pid)
)
Create a Paypal Sandbox account at https://developer.paypal.com/
Now create test accounts for payment system. Take a look at Sandbox menu left-side top Sandbox->Test Accounts
Here I have created two accounts Buyer (personal) and Seller(merchant/business)
products.php
Contains PHP code. Displaying records from products table product image,product name and product price. Here you have to give your business(seller)$paypal_id id. Modify paypal button form return and cancel_return URLs.

<?php
session_start();
require ’db_config.php’;
$uid=$_SESSION['uid'];
$username=$_SESSION['username'];
$paypal_url=’https://www.sandbox.paypal.com/cgi-bin/webscr‘; // Test Paypal API URL
$paypal_id=’your_seller_id‘; // Business email ID
?>
<body>
<h2>Welcome, <?php echo $username;?></h2>
<?php
$result = mysql_query(“SELECT * from products”);
while($row = mysql_fetch_array($result))
{
?>
<img src=”images/<?php echo $row['product_img'];?>” />
Name: <?php echo $row['product'];?>
Price: <?php echo $row['price'];?>$
// Paypal Button
<form action=’<?php echo $paypal_url; ?>‘ method=’post’ name=’form<?php echo $row['pid']; ?>’>
<input type=’hidden’ name=’business’ value=’<?php echo $paypal_id; ?>‘>
<input type=’hidden’ name=’cmd’ value=’_xclick’>
<input type=’hidden’ name=’item_name’ value=’<?php echo$row['product'];?>‘>
<input type=’hidden’ name=’item_number’ value=’<?php echo$row['pid'];?>‘>
<input type=’hidden’ name=’amount’ value=’<?php echo $row['price'];?>‘>
<input type=’hidden’ name=’no_shipping’ value=’1′>
<input type=’hidden’ name=’currency_code’ value=’USD‘>
<input type=’hidden’ name=’cancel_return‘ value=’http://yoursite.com/cancel.php’>
<input type=’hidden’ name=’return‘ value=’http://yoursite.com/success.php’>
<input type=”image” src=”https://paypal.com/en_US/i/btn/btn_buynowCC_LG.gif” name=”submit”>
</form>
<?php
}
?>
</body>
success.php
Paypal payment success return file. Getting Paypal argument like item_number. Paypal data success.php?tx=270233304D340491B&st=Completed&amt=22.00&cc=USD&cm=&item_number=1
session_start();
require ’db_config.php’;
$uid = $_SESSION['uid'];
$username=$_SESSION['username'];
$item_no = $_GET['item_number'];
$item_transaction = $_GET['tx']; // Paypal transaction ID
$item_price = $_GET['amt']; // Paypal received amount
$item_currency = $_GET['cc']; // Paypal received currency type//Getting product details
$sql=mysql_query(“select product,price,currency from producst where pid=’$item_no’”);
$row=mysql_fetch_array($sql);
$price=$row['price'];
$currency=$row['currency'];//Rechecking the product price and currency details
if($item_price==$price && item_currency==$currency)
{
$result = mysql_query(“INSERT INTO sales(pid, uid, saledate,transactionid) VALUES(‘$item_no’, ‘$uid’, NOW(),’$item_transaction’)”);
if($result)
{
echo ”<h1>Welcome, $username</h1>”;
echo ”<h1>Payment Successful</h1>”;
}
}
else
{
echo ”Payment Failed”;
}
?>
PHP Innovation Award Winner of 2012
The PHP Programming Innovation Award Winner of 2012 was announced. An interview with the winner, Karl Holz from Canada, was one of the main topics of the episode 33 of the Lately in PHP podcast conducted by Manuel Lemos and Ernani Joppert.
They also discussed the usual batch of PHP topics of interest like Zend Optimizer+ source code that was released, the PHP 5.5 feature freeze and roadmap, as well an article that compares PHP to an Hobbit, as well other languages to Lord Of The Rings story characters.
Listen to the podcast, or watch the podcast video, or read the transcript to learn about these and other interesting PHP topics.
Viswaroopam Review on Net
Viswaroopam

























Recent Comments