This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OKバージョン (git log) | |
| commit e4a7f3f8c78e83cbcf3e0f3d7c7744d98b3aa4c1 | |
| Merge: d1571b5 9fa3700 | |
| Author: Nachi Ueno <[email protected]> | |
| Date: Tue Mar 22 23:39:47 2011 +0900 | |
| Merge branch 'master' of github.com:sinsai/Ushahidi_Web into nati_feature225 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 18e05f4e8875bf50c7d81b2a6f72bc0746143b39 | |
| Merge: 1d385d8 984ba89 | |
| Author: www-data <[email protected]> | |
| Date: Fri Mar 25 17:15:33 2011 +0900 | |
| Merge branch 'master' of github.com:sinsai/Ushahidi_Web into nati_feature262 | |
| commit 1d385d821b6d10b9aaa08256d28a1de40eef42ab | |
| Author: www-data <[email protected]> | |
| Date: Fri Mar 25 17:15:14 2011 +0900 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ENV["SINSAI_TO"]||"").split(/,/).each do |e| | |
| case e | |
| when "staging" | |
| get_ec2_targets('sinsai-staging').values.each do |addr| | |
| role :app, addr | |
| end | |
| when "production" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Auto-Create A Report if Reporter is Trusted | |
| $reporter_weight = $reporter->level->level_weight; | |
| $reporter_location = $reporter->location; | |
| if ($reporter_weight > 0 AND $reporter_location) | |
| { | |
| // Create Incident | |
| $incident = new Incident_Model(); | |
| $incident->location_id = $reporter_location->id; | |
| $incident->incident_title = $message['subject']; | |
| $incident->incident_description = $message['body']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> select * from reporter where level_id = 5; | |
| +--------+-------------+-------------+---------+------------+----------+----------------+-----------------+----------------+---------------+-------------------+----------------+-------------+---------------------+ | |
| | id | incident_id | location_id | user_id | service_id | level_id | service_userid | service_account | reporter_first | reporter_last | reporter_email | reporter_phone | reporter_ip | reporter_date | | |
| +--------+-------------+-------------+---------+------------+----------+----------------+-----------------+----------------+---------------+-------------------+----------------+-------------+---------------------+ | |
| | 104315 | NULL | NULL | NULL | 2 | 5 | service_userid | svc_account | 次郎 | 震災 | [email protected] | NULL | NULL | 2011-03-21 00:00:00 | | |
| +--------+-------------+-------------+---------+------------+----------+----------------+-----------------+--------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AND ! empty($email_servertype) ) | |
| { | |
| $check_email = new Imap; | |
| $messages = $check_email->get_messages(); | |
| // Close Connection | |
| $check_email->close(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> select * from level;; | |
| +----+------------------+-------------------+--------------+ | |
| | id | level_title | level_description | level_weight | | |
| +----+------------------+-------------------+--------------+ | |
| | 1 | SPAM + Delete | SPAM + Delete | -2 | | |
| | 2 | SPAM | SPAM | -1 | | |
| | 3 | Untrusted | Untrusted | 0 | | |
| | 4 | Trusted | Trusted | 1 | | |
| | 5 | Trusted + Verify | Trusted + Verify | 2 | | |
| +----+------------------+-------------------+--------------+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv0KOh6ks4hGxhrA1SdRCiItBtx7Ed1p85XOrBoyNnlLlkZ3Ak1Zsauvl3m53R2RePVHKQZlSLznGWhTwhOkwjiZRXLQ9RQOd4sTarG8tX2wHQo3lBEpqEC7OGX80mt3crdBg0otBQ8IOnpxffrHJb5aKcJ5I94Nec+hxyDpiTFI4ai5puDCL/+JU+k2Ik7FKVPPKxZGMvVS9Nll/4baHdg18m4O0CwyAum1GtzMiqEZjqWk8cZ0vifgjp+x81gKGSC75LvTdqQw5IdnASRO0DrvLBvDt/kY+ofkHV+hVsx2zsLkWOX66828jWkeKmVARlz0xNqWiWujmRMgonrWoCw== nati@nati-desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> select count(*) from incident where incident_title = 'Re: 削除依頼'; | |
| +----------+ | |
| | count(*) | | |
| +----------+ | |
| | 403 | | |
| +----------+ | |
| 1 row in set (0.00 sec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| www-data@ip-10-146-29-221:~/ushahidi$ grep -R -e "\$incident\->save();" * | |
| application/libraries/ReportsImporter.php: $incident->save(); | |
| application/libraries/api/MY_Report_Api_Object.php: $incident->save(); | |
| application/libraries/api/MY_Swiftriver_Report_Api_Object.php: $incident->save(); | |
| application/libraries/api/MY_Admin_Reports_Api_Object.php: $incident->save(); | |
| application/controllers/scheduler/s_email.php: $incident->save(); | |
| application/controllers/scheduler/s_twitter.php: $incident->save(); | |
| application/controllers/admin/reports.php: $incident->save(); | |
| application/controllers/admin/reports.php: $incident->save(); | |
| application/controllers/admin/reports.php: $incident->save(); |