Home » Questions » All Answers

All Answers

1 vote
In reply to: php code test

Albert, thanks for responding. Adding an option to open links to new page would make your plugin much flexible. Regarding putting 4 spaces before code, I guess no one know should do this, only if you notify them before.

That was our honest testing and review.

  • demo answered 12 years ago
1 vote

You may need some CSS modifications, but it should integrate pretty easily. Icons are using font icons so they should automatically match your theme too.

1 vote

Hi, yes, .po files are included.

SabaiDiscuss Localization
http://sabaidiscuss.com/documentation/localization/

1 vote
In reply to: Demo Test 1

test

  1. Test

here

  • Full

1

2

3

4

 

  • jkfjkjf answered 8 years ago
1 vote

ali pap a

  • Oda answered 8 years ago
1 vote

wah ini dia memang lagi cari info Nissan X-Trail, Mobil SUV Paling Tangguh dan Nyaman gan

  • rohan answered 8 years ago
1 vote

kalau dari apa yang telah dibaca Nissan X-Trail, Mobil SUV Paling Tangguh dan Nyaman telah banyak disetujui oleh orang serta pengguna yang sudah membuktikan.

  • adrian answered 8 years ago
1 vote

Nissan memang T.O.P ,,, besok grand livina mengadakan seperti ini dong, tidak hanya x trail

1 vote

**markdown** test

  • aaa answered 8 years ago
1 vote

Wow very nice 🙂

  • Andre answered 8 years ago
1 vote

HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA HAba baba Haba BABA

0 votes
    syntax    name                  discription 
    x == y    Equality          True if x and y have the same key/value pairs
    x != y    Inequality            True if x is not equal to y
    x === y   Identity          True if x and y have the same key/value pairs in the same   order and of the same types
    x !== y   Non-identity          True if x is not identical to y
    ++ x      Pre-increment     Increments x by one, then returns x
    x ++      Post-increment    Returns x, then increments x by one
    -- x      Pre-decrement     Decrements x by one, then returns x
    x --      Post-decrement    Returns x, then decrements x by one
    x and y   And                   True if both x and y are true x=6 y=3 (x < 10 and y > 1) returns true
    x && y    And                   True if both x and y are true x=6 y=3 (x < 10 && y > 1) returns true
    a . b     Concatenation     Concatenate two strings     "Hi" . "Ha"

NOTE: This answer was originally posted at StackOverflow.com by Ankur Saxena

  • Wayne answered 12 years ago
0 votes

I am currently using this approach for most of my projects,

$public_key = sha1("mysite.com");

//While Registration
$user_salt = sha1(uniqid(time()).$public_key); //Time Based Unique ID
$user_name = "helloworld"; //Entered by user
$user_pass = "123456"; //Most novice users will use this.

$secret_pass = sha1($user_pass . $user_name . $user_salt);

In DB Store,
$user_name, $secret_pass, $user_salt

//While Login
$user_name = "helloworld";
$entered_pass = "123456";

Find $user_name from DB
If $user_name found than get $secret_pass and $user_salt from DB corresponding to that user

$current_pass = sha1($entered_pass . $user_name . $user_salt);
if($current_pass === $secret_pass)
    User is Authenticated

NOTE: This answer was originally posted at StackOverflow.com by whoru

0 votes

If you can’t just reject the requirement to store recoverable passwords, how about this as your counter-argument.

We can either properly hash passwords and build a reset mechanism for the users, or we can remove all personally identifiable information from the system. You can use an email address to set up user preferences, but that’s about it. Use a cookie to automatically pull preferences on future visits and throw the data away after a reasonable period.

The one option that is often overlooked with password policy is whether a password is really even needed. If the only thing your password policy does is cause customer service calls, maybe you can get rid of it.

NOTE: This answer was originally posted at StackOverflow.com by anopres

  • Cindy answered 14 years ago
0 votes
In reply to: Good PHP ORM Library?

PHP ORM Faces For PDO extension. See PHP Faces Framework.

$urun = new Product();
$urun->name='CPU'
$urun->prince='124';
$urun->save();

NOTE: This answer was originally posted at StackOverflow.com by Kurt

  • Robert answered 15 years ago
  • last active 12 years ago
0 votes
In reply to: Good PHP ORM Library?

I found ORM related classes in the PHP library Flourish.

NOTE: This answer was originally posted at StackOverflow.com by VDVLeon

  • Linda answered 14 years ago
  • last active 13 years ago
0 votes
In reply to: Good PHP ORM Library?

Doctrine is probably your best bet. Prior to Doctrine, DB_DataObject was essentially the only other utility that was open sourced.

NOTE: This answer was originally posted at StackOverflow.com by anon

  • Sherry answered 16 years ago
  • last active 13 years ago
0 votes

Current thinking: hashes should be slowest available, not fastest possible. This suppresses rainbow table attacks.

Also related, but precautionary: An attacker should never have unlimited access to your login screen. To prevent that: Set up an IP tracking table that records every hit along with the URI. If more than 5 attempts to login come from the same IP in any five minute period, block with explanation. A secondary approach is to have a two-tiered password scheme, like banks do. Putting a lock-out for failures on the second pass boosts security.

Summary: slow down the attacker by using time-consuming hash functions. Also, block on too many accesses to your login, and add a second password tier.

NOTE: This answer was originally posted at StackOverflow.com by FYA

  • Timothy answered 13 years ago
  • last active 13 years ago
0 votes

The simple alternative to this problem could be solved by granting appropriate permissions in the database itself.
For example: if you are using mysql database. then enter into the database through terminal or the ui provided and just follow this command:

    GRANT SELECT, INSERT, DELETE ON database TO username@'localhost' IDENTIFIED BY 'password';

This will restrict the user to only get confined with the specified query’s only. Remove the delete permission and so the data would never get deleted from the query fired from the php page.
The second thing to do is to flush the privileges so that the mysql refreshes the permissions and updates.

    FLUSH PRIVILEGES; 

more info on flush is given at url: http://www.itechp2pexchange.com/content/mysql-flush-privileges-statement

To see the current privileges for the user fire the following query.

    select * from mysql.user where User='username';

Learn about GRANT at url: http://kb.mediatemple.net/questions/788/HOWTO%3A+GRANT+privileges+in+MySQL#dv

NOTE: This answer was originally posted at StackOverflow.com by apurv nerlekar

  • Kevin answered 12 years ago
Showing 161 - 180 of 1k results